From: D. Ben Knoble Date: Fri, 20 Mar 2026 15:25:37 GMT Subject: Re: [PATCH v2 2/2] name-rev: learn --format= Message-ID: In-Reply-To: On Fri, Mar 20, 2026 at 9:13 AM wrote: > > From: Kristoffer Haugsbakk > > Teach git-name-rev(1) to format the given revisions instead of creating > symbolic names. [snip] > --- > > Notes (series): > v2: > • Propely implement “--format implies --name-only” > • Don’t use a needless intermediary struct > • Add a new member to `name_rev_usage[]` > • FREE_AND_NULL notes string. There is no use-after-free but we have no > reason to leave a freed pointer just laying there > • Implement `--notes` for `%N` atom use (not just restrict to the default > notes ref) [snip] > diff --git a/Documentation/git-name-rev.adoc b/Documentation/git-name-rev.adoc > index d4f1c4d5945..65348690c8c 100644 > --- a/Documentation/git-name-rev.adoc > +++ b/Documentation/git-name-rev.adoc > @@ -9,7 +9,7 @@ git-name-rev - Find symbolic names for given revs > SYNOPSIS > -------- > [verse] > -'git name-rev' [--tags] [--refs=] > +'git name-rev' [--tags] [--refs=] [--format=] > ( --all | --annotate-stdin | ... ) > > DESCRIPTION > @@ -21,6 +21,14 @@ format parsable by 'git rev-parse'. > OPTIONS > ------- > > +--format=:: > +--no-format:: > + Format revisions instead of outputting symbolic names. The > + default is `--no-format`. > ++ > +Implies `--name-only`. The negation `--no-format` implies > +`--no-name-only` (the default for the command). > + > --tags:: > Do not use branch names, but only tags to name the commits IIUC that this patch also adds --notes, should it be documented here?