Skip to content

Commit 7203baf

Browse files
committed
Merge branch 'ah/diff-files-ours-theirs-doc'
The diff options "--ours", "--theirs" exist for quite some time. But so far they were not documented. Now they are. * ah/diff-files-ours-theirs-doc: diff-files: document --ours etc.
2 parents 74a74be + 47242cd commit 7203baf

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Documentation/git-diff.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,20 @@ OPTIONS
9797
:git-diff: 1
9898
include::diff-options.txt[]
9999

100+
-1 --base::
101+
-2 --ours::
102+
-3 --theirs::
103+
Compare the working tree with the "base" version (stage #1),
104+
"our branch" (stage #2) or "their branch" (stage #3). The
105+
index contains these stages only for unmerged entries i.e.
106+
while resolving conflicts. See linkgit:git-read-tree[1]
107+
section "3-Way Merge" for detailed information.
108+
109+
-0::
110+
Omit diff output for unmerged entries and just show
111+
"Unmerged". Can be used only when comparing the working tree
112+
with the index.
113+
100114
<path>...::
101115
The <paths> parameters, when given, are used to limit
102116
the diff to the named paths (you can give directory

0 commit comments

Comments
 (0)