blob: 9cd8ccef37f131d7913926ef9b5b7b49fe6d3463 [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231git-diff-files(1)
2=================
3
4NAME
5----
6git-diff-files - Compares files in the working tree and the index
7
8
9SYNOPSIS
10--------
Junio C Hamanofce7c7e2008-07-02 03:06:3811'git diff-files' [-q] [-0|-1|-2|-3|-c|--cc] [<common diff options>] [<path>...]
Junio C Hamano1a4e8412005-12-27 08:17:2312
13DESCRIPTION
14-----------
15Compares the files in the working tree and the index. When paths
16are specified, compares only those named paths. Otherwise all
17entries in the index are compared. The output format is the
Junio C Hamano1aa40d22010-01-21 17:46:4318same as for 'git diff-index' and 'git diff-tree'.
Junio C Hamano1a4e8412005-12-27 08:17:2319
20OPTIONS
21-------
22include::diff-options.txt[]
23
Junio C Hamanobd53dbf2009-01-18 18:26:3724-1 --base::
25-2 --ours::
26-3 --theirs::
27-0::
Junio C Hamano1a4e8412005-12-27 08:17:2328Diff against the "base" version, "our branch" or "their
29branch" respectively. With these options, diffs for
30merged entries are not shown.
31+
Junio C Hamanoa77a5132007-06-08 16:13:4432The default is to diff against our branch (-2) and the
Junio C Hamano1a4e8412005-12-27 08:17:2333cleanly resolved paths. The option -0 can be given to
34omit diff output for unmerged entries and just show "Unmerged".
35
Junio C Hamanoeb415992008-06-08 22:49:4736-c::
37--cc::
Junio C Hamanofb56a962006-01-28 10:38:1938This compares stage 2 (our branch), stage 3 (their
39branch) and the working tree file and outputs a combined
40diff, similar to the way 'diff-tree' shows a merge
41commit with these flags.
42
Junio C Hamano1a4e8412005-12-27 08:17:2343-q::
Junio C Hamano51c2ab02006-07-09 20:38:5444Remain silent even on nonexistent files
Junio C Hamano1a4e8412005-12-27 08:17:2345
Junio C Hamano543f8d62009-07-29 08:35:2146
Junio C Hamano1a4e8412005-12-27 08:17:2347include::diff-format.txt[]
48
49
50Author
51------
52Written by Linus Torvalds <torvalds@osdl.org>
53
54Documentation
55--------------
56Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
57
58GIT
59---
Junio C Hamanof7c042d2008-06-06 22:50:5360Part of the linkgit:git[1] suite