diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-06-25 14:10:02 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-06-25 14:10:02 -0700 |
commit | a5fefe3b7f2b8fe9a1f9bd345a5211a97ffa7bbc (patch) | |
tree | 6ac39693feb4b7878688cac06703e7a42f467d12 /git-diff.txt | |
parent | 03e5f3577506a386bba64f108726ba68bf0f9241 (diff) | |
download | git-htmldocs-a5fefe3b7f2b8fe9a1f9bd345a5211a97ffa7bbc.tar.gz |
Autogenerated HTML docs for v2.27.0-203-gf402e
Diffstat (limited to 'git-diff.txt')
-rw-r--r-- | git-diff.txt | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/git-diff.txt b/git-diff.txt index 37781cf17..1018110dd 100644 --- a/git-diff.txt +++ b/git-diff.txt @@ -11,15 +11,17 @@ SYNOPSIS [verse] 'git diff' [<options>] [<commit>] [--] [<path>...] 'git diff' [<options>] --cached [<commit>] [--] [<path>...] -'git diff' [<options>] <commit> <commit> [--] [<path>...] +'git diff' [<options>] <commit> [<commit>...] <commit> [--] [<path>...] +'git diff' [<options>] <commit>...<commit> [--] [<path>...] 'git diff' [<options>] <blob> <blob> 'git diff' [<options>] --no-index [--] <path> <path> DESCRIPTION ----------- Show changes between the working tree and the index or a tree, changes -between the index and a tree, changes between two trees, changes between -two blob objects, or changes between two files on disk. +between the index and a tree, changes between two trees, changes resulting +from a merge, changes between two blob objects, or changes between two +files on disk. 'git diff' [<options>] [--] [<path>...]:: @@ -67,6 +69,15 @@ two blob objects, or changes between two files on disk. one side is omitted, it will have the same effect as using HEAD instead. +'git diff' [<options>] <commit> [<commit>...] <commit> [--] [<path>...]:: + + This form is to view the results of a merge commit. The first + listed <commit> must be the merge itself; the remaining two or + more commits should be its parents. A convenient way to produce + the desired set of revisions is to use the {caret}@ suffix. + For instance, if `master` names a merge commit, `git diff master + master^@` gives the same combined diff as `git show master`. + 'git diff' [<options>] <commit>\...<commit> [--] [<path>...]:: This form is to view the changes on the branch containing @@ -196,7 +207,8 @@ linkgit:git-difftool[1], linkgit:git-log[1], linkgit:gitdiffcore[7], linkgit:git-format-patch[1], -linkgit:git-apply[1] +linkgit:git-apply[1], +linkgit:git-show[1] GIT --- |