Skip to content

Commit a8fa6a0

Browse files
Denton-Lgitster
authored andcommitted
git-diff.txt: backtick quote command text
The modern way to quote commands in the documentation is to use backticks instead of double-quotes as this renders the text with the code style. Convert double-quoted command text to backtick-quoted commands. While we're at it, quote one instance of `^@`. Signed-off-by: Denton Liu <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b277b73 commit a8fa6a0

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Documentation/git-diff.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ files on disk.
6868
This form is to view the results of a merge commit. The first
6969
listed <commit> must be the merge itself; the remaining two or
7070
more commits should be its parents. A convenient way to produce
71-
the desired set of revisions is to use the {caret}@ suffix.
71+
the desired set of revisions is to use the `^@` suffix.
7272
For instance, if `master` names a merge commit, `git diff master
7373
master^@` gives the same combined diff as `git show master`.
7474

7575
'git diff' [<options>] <commit>..<commit> [--] [<path>...]::
7676

77-
This is synonymous to the earlier form (without the "..") for
77+
This is synonymous to the earlier form (without the `..`) for
7878
viewing the changes between two arbitrary <commit>. If <commit> on
7979
one side is omitted, it will have the same effect as
8080
using HEAD instead.
@@ -83,20 +83,20 @@ files on disk.
8383

8484
This form is to view the changes on the branch containing
8585
and up to the second <commit>, starting at a common ancestor
86-
of both <commit>. "git diff A\...B" is equivalent to
87-
"git diff $(git merge-base A B) B". You can omit any one
86+
of both <commit>. `git diff A...B` is equivalent to
87+
`git diff $(git merge-base A B) B`. You can omit any one
8888
of <commit>, which has the same effect as using HEAD instead.
8989

9090
Just in case you are doing something exotic, it should be
9191
noted that all of the <commit> in the above description, except
92-
in the last two forms that use ".." notations, can be any
92+
in the last two forms that use `..` notations, can be any
9393
<tree>.
9494

9595
For a more complete list of ways to spell <commit>, see
9696
"SPECIFYING REVISIONS" section in linkgit:gitrevisions[7].
9797
However, "diff" is about comparing two _endpoints_, not ranges,
98-
and the range notations ("<commit>..<commit>" and
99-
"<commit>\...<commit>") do not mean a range as defined in the
98+
and the range notations (`<commit>..<commit>` and
99+
`<commit>...<commit>`) do not mean a range as defined in the
100100
"SPECIFYING RANGES" section in linkgit:gitrevisions[7].
101101

102102
'git diff' [<options>] <blob> <blob>::
@@ -144,9 +144,9 @@ $ git diff HEAD <3>
144144
+
145145
<1> Changes in the working tree not yet staged for the next commit.
146146
<2> Changes between the index and your last commit; what you
147-
would be committing if you run "git commit" without "-a" option.
147+
would be committing if you run `git commit` without `-a` option.
148148
<3> Changes in the working tree since your last commit; what you
149-
would be committing if you run "git commit -a"
149+
would be committing if you run `git commit -a`
150150

151151
Comparing with arbitrary commits::
152152
+

0 commit comments

Comments
 (0)