Re: [PATCH 1/2] doc: fix list continuation in alias subsection example
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 24, 2026, 19:11 UTC
- Message-ID
- <xmqqwm02ez3c.fsf@gitster.g>
- In-Reply-To
- <20260224171245.458377-2-jonatan@jontes.page>
Jonatan Holmgren <jonatan@jontes.page> writes:
Show 9 quoted lines
> The example showing the equivalence between alias.last and > alias.last.command was missing the list continuation marks (+ > between the shell session block and the following prose, leaving > the paragraph detached from the list item in the rendered output. > > Signed-off-by: Jonatan Holmgren <jonatan@jontes.page> > --- > Documentation/config/alias.adoc | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-)
This seems to address the same issue as 0ed2275f (doc: config: fix list continuation in alias section, 2026-02-23). Should we treat this one as a replacement of that one?
Show 22 quoted lines
> diff --git a/Documentation/config/alias.adoc b/Documentation/config/alias.adoc > index 115fdbb1e3..7830379f58 100644 > --- a/Documentation/config/alias.adoc > +++ b/Documentation/config/alias.adoc > @@ -30,13 +30,14 @@ Examples: > ---- > + > With a Git alias defined, e.g., > - > ++ > $ git config --global alias.last "cat-file commit HEAD" > # Which is equivalent to > $ git config --global alias.last.command "cat-file commit HEAD" > ++ > +`git last` is equivalent to `git cat-file commit HEAD`. > > -`git last` is equivalent to `git cat-file commit HEAD`. To avoid > -confusion and troubles with script usage, aliases that > +To avoid confusion and troubles with script usage, aliases that > hide existing Git commands are ignored except for deprecated > commands. Arguments are split by > spaces, the usual shell quoting and escaping are supported.