]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-diff-files.txt
git-rerere.txt: Clarify ambiguity of the config variable
[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--------
b1889c36 11'git diff-files' [-q] [-0|-1|-2|-3|-c|--cc] [<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
ba020ef5 18same as for 'git-diff-index' and 'git-diff-tree'.
2cf565c5
DG
19
20OPTIONS
21-------
dda2d79a 22include::diff-options.txt[]
2cf565c5 23
bf474e24
MH
24-1 --base::
25-2 --ours::
26-3 --theirs::
27-0::
10637b84
LT
28 Diff against the "base" version, "our branch" or "their
29 branch" respectively. With these options, diffs for
30 merged entries are not shown.
31+
a6080a0a 32The default is to diff against our branch (-2) and the
15bf57a1
JH
33cleanly resolved paths. The option -0 can be given to
34omit diff output for unmerged entries and just show "Unmerged".
10637b84 35
3240240f
SB
36-c::
37--cc::
34801cab
JH
38 This compares stage 2 (our branch), stage 3 (their
39 branch) and the working tree file and outputs a combined
40 diff, similar to the way 'diff-tree' shows a merge
41 commit with these flags.
42
2cf565c5 43-q::
addf88e4 44 Remain silent even on nonexistent files
2cf565c5 45
2cf565c5
DG
46Output format
47-------------
48include::diff-format.txt[]
49
50
51Author
52------
53Written by Linus Torvalds <torvalds@osdl.org>
54
55Documentation
56--------------
57Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
58
59GIT
60---
9e1f0a85 61Part of the linkgit:git[1] suite