Skip to content

Commit 8560723

Browse files
phil-blaingitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f5d9e91 commit 8560723

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Documentation/git-rev-list.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,28 +29,28 @@ to further limit the result.
2929
Thus, the following command:
3030

3131
-----------------------------------------------------------------------
32-
$ git rev-list foo bar ^baz
32+
$ git rev-list foo bar ^baz
3333
-----------------------------------------------------------------------
3434

3535
means "list all the commits which are reachable from 'foo' or 'bar', but
3636
not from 'baz'".
3737

3838
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
4040
the following may be used interchangeably:
4141

4242
-----------------------------------------------------------------------
43-
$ git rev-list origin..HEAD
44-
$ git rev-list HEAD ^origin
43+
$ git rev-list origin..HEAD
44+
$ git rev-list HEAD ^origin
4545
-----------------------------------------------------------------------
4646

4747
Another special notation is "'<commit1>'...'<commit2>'" which is useful
4848
for merges. The resulting set of commits is the symmetric difference
4949
between the two operands. The following two commands are equivalent:
5050

5151
-----------------------------------------------------------------------
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
5454
-----------------------------------------------------------------------
5555

5656
'rev-list' is a very essential Git command, since it

0 commit comments

Comments
 (0)