Skip to content

Commit 47242cd

Browse files
asheidukgitster
authored andcommitted
diff-files: document --ours etc.
git-diff understands "--ours", "--theirs" and "--base" for files with conflicts. But so far they were not documented for the central diff command but only for diff-files. Signed-off-by: Andreas Heiduk <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 49800c9 commit 47242cd

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)