@matheusbsbs / matheus-bagliano / commits / 8560723266
Fork 0

git-rev-list.txt: fix Asciidoc syntax

Using '{caret}' inside double quotes and immediately following with a single quoted word does not create the desired output: '<commit1>' appears verbatim instead of being emphasized. Use a litteral caret ('^') instead. Also, remove the leading tabs in shell examples to bring them more in line with the rest of the documentation. Signed-off-by: Philippe Blain <levraiphilippeblain@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Philippe Blain committed Jul 9, 2020 at 02:16 UTC 8560723266f2cb49faf42710c7c380af8d7c0ffd
1 file changed +6 -6
Documentation/git-rev-list.txt
+6 -6
@@ -29,19 +29,19 @@ to further limit the result.
29 Thus, the following command:
30
31 -----------------------------------------------------------------------
32 - $ git rev-list foo bar ^baz
32 +$ git rev-list foo bar ^baz
33 -----------------------------------------------------------------------
34
35 means "list all the commits which are reachable from 'foo' or 'bar', but
36 not from 'baz'".
37
38 A special notation "'<commit1>'..'<commit2>'" can be used as a
39 -short-hand for "{caret}'<commit1>' '<commit2>'". For example, either of
39 +short-hand for "^'<commit1>' '<commit2>'". For example, either of
40 the following may be used interchangeably:
41
42 -----------------------------------------------------------------------
43 - $ git rev-list origin..HEAD
44 - $ git rev-list HEAD ^origin
43 +$ git rev-list origin..HEAD
44 +$ git rev-list HEAD ^origin
45 -----------------------------------------------------------------------
46
47 Another special notation is "'<commit1>'...'<commit2>'" which is useful
@@ -49,8 +49,8 @@ for merges. The resulting set of commits is the symmetric difference
49 between the two operands. The following two commands are equivalent:
50
51 -----------------------------------------------------------------------
52 - $ git rev-list A B --not $(git merge-base --all A B)
53 - $ git rev-list A...B
52 +$ git rev-list A B --not $(git merge-base --all A B)
53 +$ git rev-list A...B
54 -----------------------------------------------------------------------
55
56 'rev-list' is a very essential Git command, since it