]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-diff-files.txt
diff-files -c/--cc: combine only when both ours and theirs exist.
[thirdparty/git.git] / Documentation / git-diff-files.txt
CommitLineData
2cf565c5
DG
1git-diff-files(1)
2=================
2cf565c5
DG
3
4NAME
5----
5f3aa197 6git-diff-files - Compares files in the working tree and the index
2cf565c5
DG
7
8
9SYNOPSIS
10--------
dda2d79a 11'git-diff-files' [-q] [<common diff options>] [<path>...]
2cf565c5
DG
12
13DESCRIPTION
14-----------
5f3aa197 15Compares the files in the working tree and the index. When paths
2cf565c5 16are specified, compares only those named paths. Otherwise all
5f3aa197 17entries in the index are compared. The output format is the
215a7ad1 18same as "git-diff-index" and "git-diff-tree".
2cf565c5
DG
19
20OPTIONS
21-------
dda2d79a 22include::diff-options.txt[]
2cf565c5 23
10637b84
LT
24-1 -2 -3 or --base --ours --theirs, and -0::
25 Diff against the "base" version, "our branch" or "their
26 branch" respectively. With these options, diffs for
27 merged entries are not shown.
28+
15bf57a1
JH
29The default is to diff against our branch (-2) and the
30cleanly resolved paths. The option -0 can be given to
31omit diff output for unmerged entries and just show "Unmerged".
10637b84 32
2cf565c5
DG
33-q::
34 Remain silent even on nonexisting files
35
2cf565c5
DG
36Output format
37-------------
38include::diff-format.txt[]
39
40
41Author
42------
43Written by Linus Torvalds <torvalds@osdl.org>
44
45Documentation
46--------------
47Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
48
49GIT
50---
a7154e91 51Part of the gitlink:git[7] suite
2cf565c5 52