Re: [PATCH 4/4] doc: convert git-fast-export.adoc to synopsis style
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 25, 2026, 05:07 UTC
- Message-ID
- <xmqqbj7dcxdw.fsf@gitster.g>
- In-Reply-To
- <814dfdddf691445cc2d982854cd4e7ddcfbd8875.1795556940.git.gitgitgadget@gmail.com>
"Jean-Noël Avila via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 11 quoted lines
> From: =?UTF-8?q?Jean-No=C3=ABl=20Avila?= <jn.avila@free.fr> > > * convert synopsis section > * convert options to `` style > * convert _<placeholder>_ style > * convert inline list of values to sub definition lists > > Signed-off-by: Jean-Noël Avila <jn.avila@free.fr> > --- > Documentation/git-fast-export.adoc | 193 +++++++++++++++-------------- > 1 file changed, 98 insertions(+), 95 deletions(-)
> +[synopsis] > gpgsig <git-hash-algo> <signature-format>
Using [synopsis] on the gpgsig <git-hash-algo> <signature-format> line looks very clean.
Show 6 quoted lines
> ---mark-tags:: > - In addition to labelling blobs and commits with mark ids, also > - label tags. This is useful in conjunction with > +`--mark-tags`:: > + Label tags with mark ids in addition of blobs and commits. > + This is useful in conjunction with
Two typos crept into the rewritten sentence: a double space (which, admittedly, is harmless, but some of us do read the source) after "tags", and "in addition of" instead of "in addition to".
Show 9 quoted lines
> +`--reference-excluded-parents`:: > + Have the stream refer to commits in the excluded range of history by their SHA-1 object > + name instead of rewriting their parent references. By default, running > + a command such as `git fast-export master~5..master` will not include the > + commit `master~5` > + and will make `master~4` no longer have `master~5` as > + a parent (though both the old `master~4` and new > + `master~4` will have all the same files). Note that the resulting stream > + can only be used by a repository which already contains the necessary parent
There is a stray tab between "which" and "already" here (which, admittedly is harmless when rendered, but some of us do read the source).
Show 8 quoted lines
> ---reencode=(yes|no|abort):: > +`--reencode=(yes|no|abort)`:: > Specify how to handle `encoding` header in commit objects. When > - asking to 'abort' (which is the default), this program will die > - when encountering such a commit object. With 'yes', the commit > - message will be re-encoded into UTF-8. With 'no', the original > - encoding will be preserved. > + asking to one of the following values:
"When asking to one of the following values:" reads like an incomplete edit of "When asking to 'abort'...". Replacing it with "The possible values are:" or ending the first sentence with a colon ("Specify how to handle the `encoding` header in commit objects:") would read more cleanly, perhaps?
Show 5 quoted lines
> ++ > +`abort`;; Die when encountering a commit object with an `encoding` header. > +This is the default. > +`yes`;; Re-encode the commit message into UTF-8. > +`no`;; Preserve the original encoding.
Show 5 quoted lines
> -[<git-rev-list-args>...]:: > +`<git-rev-list-args>...`:: > A list of arguments, acceptable to 'git rev-parse' and > 'git rev-list', that specifies the specific objects and references > to export. For example, `master~10..master` causes the
Shouldn't 'git rev-parse' and 'git rev-list' here be converted to backticks e.g., `git rev-parse`, too?
Thanks.