Replies: 1 comment 2 replies
-
|
You can use
The topmost patch could similarly be printed by using
So while not as on the nose as having Note that to see the first unapplied patch (which you might call the bottom of the unapplied), use the
And the last (topmost) unapplied patch can be accessed using
It would be straightforward to add aliases for one or more of these. E.g.
You can then just invoke:
I don't think StGit needs more options or commands for printing patches. All the fancy patch locators were added to solve this problem. I could perhaps be convinced about Perhaps its also worth noting that you perhaps don't even really want to print the, e.g. bottom most patch, but instead want to point various other
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When scripting, I often want to find the first commit in my series.
The sha of the first commit can be deduced by other means of course, but I noticed
that the there is a
stg topcommand which prints the patch name of the top applied patch.So, even though it would be nice and probably fairly easy to add
stg bottom, which would showthe bottom applied patch (or error if none is applied), I see some overlap between
stg topandstg seriesand evenstg show.Could we instead extend
stg seriesand add--topand--bottom(or perhaps--only-topor--only-bottom), and some kind of formatter args,--name-onlyto get only the name. The--topand--bottomwould then be affected by-Aand-Uand-H, instead of just work with-Aas today.Then
stg topcould be thanked, pensioned and deprecated/retired, and we would get (at least eventually) one command less, but more functionality in existing commands.Just an idea.
Beta Was this translation helpful? Give feedback.
All reactions