]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc: fix list continuation in alias subsection example
authorJonatan Holmgren <jonatan@jontes.page>
Thu, 26 Feb 2026 20:53:26 +0000 (21:53 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 26 Feb 2026 21:06:48 +0000 (13:06 -0800)
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/alias.adoc

index 115fdbb1e3f3baf408f76e6e4784350c4de0feca..26949a0ccb052537821433f10799e44dac9d7491 100644 (file)
@@ -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.