Skip to content

Commit 0ed2275

Browse files
LemmingAvalanchegitster
authored andcommitted
doc: config: fix list continuation in alias section
ac1f12a (alias: support non-alphanumeric names via subsection syntax, 2026-02-18) did not use list continuation for this code block[1] which means that the block ends after it. In turn the paragraph starting with `git last` goes to the outer block and the next paragraphs are not continued properly. We can simply add list continuation right before and after the code block. Let’s of course do that, but let’s also change to use a non- indented code block (----) in line with the preceding configuration example. Also use `$ #` for the comment to be consistent with the terminal prompt. † 1: From https://lore.kernel.org/git/xmqqqzqqrk2h.fsf@gitster.g/ Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent edd8ad1 commit 0ed2275

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

Documentation/config/alias.adoc

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@ Examples:
3030
----
3131
+
3232
With a Git alias defined, e.g.,
33-
34-
$ git config --global alias.last "cat-file commit HEAD"
35-
# Which is equivalent to
36-
$ git config --global alias.last.command "cat-file commit HEAD"
37-
33+
+
34+
----
35+
$ git config --global alias.last "cat-file commit HEAD"
36+
$ # Which is equivalent to
37+
$ git config --global alias.last.command "cat-file commit HEAD"
38+
----
39+
+
3840
`git last` is equivalent to `git cat-file commit HEAD`. To avoid
3941
confusion and troubles with script usage, aliases that
4042
hide existing Git commands are ignored except for deprecated

0 commit comments

Comments
 (0)