blob: 9cd8ccef37f131d7913926ef9b5b7b49fe6d3463 [file] [log] [blame]
David Greaves2cf565c2005-05-10 22:32:30 +01001git-diff-files(1)
2=================
David Greaves2cf565c2005-05-10 22:32:30 +01003
4NAME
5----
Lukas_Sandström5f3aa192005-11-11 02:12:27 +01006git-diff-files - Compares files in the working tree and the index
David Greaves2cf565c2005-05-10 22:32:30 +01007
8
9SYNOPSIS
10--------
Jonathan Niederb1889c32008-06-30 01:09:04 -050011'git diff-files' [-q] [-0|-1|-2|-3|-c|--cc] [<common diff options>] [<path>...]
David Greaves2cf565c2005-05-10 22:32:30 +010012
13DESCRIPTION
14-----------
Lukas_Sandström5f3aa192005-11-11 02:12:27 +010015Compares the files in the working tree and the index. When paths
David Greaves2cf565c2005-05-10 22:32:30 +010016are specified, compares only those named paths. Otherwise all
Lukas_Sandström5f3aa192005-11-11 02:12:27 +010017entries in the index are compared. The output format is the
Thomas Rast0b444cd2010-01-10 00:33:00 +010018same as for 'git diff-index' and 'git diff-tree'.
David Greaves2cf565c2005-05-10 22:32:30 +010019
20OPTIONS
21-------
Junio C Hamanodda2d792005-07-13 12:52:35 -070022include::diff-options.txt[]
David Greaves2cf565c2005-05-10 22:32:30 +010023
Markus Heidelbergbf474e22009-01-16 22:42:33 +010024-1 --base::
25-2 --ours::
26-3 --theirs::
27-0::
Linus Torvalds10637b82005-11-29 21:06:10 -080028 Diff against the "base" version, "our branch" or "their
29 branch" respectively. With these options, diffs for
30 merged entries are not shown.
31+
Junio C Hamanoa6080a02007-06-07 00:04:01 -070032The default is to diff against our branch (-2) and the
Junio C Hamano15bf57a2005-11-30 02:16:36 -080033cleanly resolved paths. The option -0 can be given to
34omit diff output for unmerged entries and just show "Unmerged".
Linus Torvalds10637b82005-11-29 21:06:10 -080035
Stephan Beyer32402402008-06-08 03:36:09 +020036-c::
37--cc::
Junio C Hamano34801ca2006-01-28 02:19:22 -080038 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
David Greaves2cf565c2005-05-10 22:32:30 +010043-q::
Pavel Roskinaddf88e2006-07-09 03:44:30 -040044 Remain silent even on nonexistent files
David Greaves2cf565c2005-05-10 22:32:30 +010045
David Kågedalf552e512009-07-28 10:32:18 +020046
David Greaves2cf565c2005-05-10 22:32:30 +010047include::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---
Christian Couder9e1f0a82008-06-06 09:07:32 +020060Part of the linkgit:git[1] suite