blob: 7248b35d952c3fe97496895059af35300694eb98 [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 Hamanofb56a962006-01-28 10:38:1911'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
18same as "git-diff-index" and "git-diff-tree".
19
20OPTIONS
21-------
22include::diff-options.txt[]
23
24-1 -2 -3 or --base --ours --theirs, and -0::
25Diff against the "base" version, "our branch" or "their
26branch" respectively. With these options, diffs for
27merged entries are not shown.
28+
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".
32
Junio C Hamanofb56a962006-01-28 10:38:1933-c,--cc::
34This compares stage 2 (our branch), stage 3 (their
35branch) and the working tree file and outputs a combined
36diff, similar to the way 'diff-tree' shows a merge
37commit with these flags.
38
Junio C Hamano1a4e8412005-12-27 08:17:2339-q::
Junio C Hamano51c2ab02006-07-09 20:38:5440Remain silent even on nonexistent files
Junio C Hamano1a4e8412005-12-27 08:17:2341
42Output format
43-------------
44include::diff-format.txt[]
45
46
47Author
48------
49Written by Linus Torvalds <torvalds@osdl.org>
50
51Documentation
52--------------
53Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
54
55GIT
56---
57Part of the gitlink:git[7] suite
58