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.
-
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 top
command 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 top
andstg series
and evenstg show
.Could we instead extend
stg series
and add--top
and--bottom
(or perhaps--only-top
or--only-bottom
), and some kind of formatter args,--name-only
to get only the name. The--top
and--bottom
would then be affected by-A
and-U
and-H
, instead of just work with-A
as today.Then
stg top
could 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