David Greaves | 2cf565c | 2005-05-10 22:32:30 +0100 | [diff] [blame] | 1 | git-diff-files(1) |
| 2 | ================= |
David Greaves | 2cf565c | 2005-05-10 22:32:30 +0100 | [diff] [blame] | 3 | |
| 4 | NAME |
| 5 | ---- |
Lukas_Sandström | 5f3aa19 | 2005-11-11 02:12:27 +0100 | [diff] [blame] | 6 | git-diff-files - Compares files in the working tree and the index |
David Greaves | 2cf565c | 2005-05-10 22:32:30 +0100 | [diff] [blame] | 7 | |
| 8 | |
| 9 | SYNOPSIS |
| 10 | -------- |
Jonathan Nieder | b1889c3 | 2008-06-30 01:09:04 -0500 | [diff] [blame] | 11 | 'git diff-files' [-q] [-0|-1|-2|-3|-c|--cc] [<common diff options>] [<path>...] |
David Greaves | 2cf565c | 2005-05-10 22:32:30 +0100 | [diff] [blame] | 12 | |
| 13 | DESCRIPTION |
| 14 | ----------- |
Lukas_Sandström | 5f3aa19 | 2005-11-11 02:12:27 +0100 | [diff] [blame] | 15 | Compares the files in the working tree and the index. When paths |
David Greaves | 2cf565c | 2005-05-10 22:32:30 +0100 | [diff] [blame] | 16 | are specified, compares only those named paths. Otherwise all |
Lukas_Sandström | 5f3aa19 | 2005-11-11 02:12:27 +0100 | [diff] [blame] | 17 | entries in the index are compared. The output format is the |
Thomas Rast | 0b444cd | 2010-01-10 00:33:00 +0100 | [diff] [blame] | 18 | same as for 'git diff-index' and 'git diff-tree'. |
David Greaves | 2cf565c | 2005-05-10 22:32:30 +0100 | [diff] [blame] | 19 | |
| 20 | OPTIONS |
| 21 | ------- |
Junio C Hamano | dda2d79 | 2005-07-13 12:52:35 -0700 | [diff] [blame] | 22 | include::diff-options.txt[] |
David Greaves | 2cf565c | 2005-05-10 22:32:30 +0100 | [diff] [blame] | 23 | |
Markus Heidelberg | bf474e2 | 2009-01-16 22:42:33 +0100 | [diff] [blame] | 24 | -1 --base:: |
| 25 | -2 --ours:: |
| 26 | -3 --theirs:: |
| 27 | -0:: |
Linus Torvalds | 10637b8 | 2005-11-29 21:06:10 -0800 | [diff] [blame] | 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 | + |
Junio C Hamano | a6080a0 | 2007-06-07 00:04:01 -0700 | [diff] [blame] | 32 | The default is to diff against our branch (-2) and the |
Junio C Hamano | 15bf57a | 2005-11-30 02:16:36 -0800 | [diff] [blame] | 33 | cleanly resolved paths. The option -0 can be given to |
| 34 | omit diff output for unmerged entries and just show "Unmerged". |
Linus Torvalds | 10637b8 | 2005-11-29 21:06:10 -0800 | [diff] [blame] | 35 | |
Stephan Beyer | 3240240 | 2008-06-08 03:36:09 +0200 | [diff] [blame] | 36 | -c:: |
| 37 | --cc:: |
Junio C Hamano | 34801ca | 2006-01-28 02:19:22 -0800 | [diff] [blame] | 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 | |
David Greaves | 2cf565c | 2005-05-10 22:32:30 +0100 | [diff] [blame] | 43 | -q:: |
Pavel Roskin | addf88e | 2006-07-09 03:44:30 -0400 | [diff] [blame] | 44 | Remain silent even on nonexistent files |
David Greaves | 2cf565c | 2005-05-10 22:32:30 +0100 | [diff] [blame] | 45 | |
David Kågedal | f552e51 | 2009-07-28 10:32:18 +0200 | [diff] [blame] | 46 | |
David Greaves | 2cf565c | 2005-05-10 22:32:30 +0100 | [diff] [blame] | 47 | include::diff-format.txt[] |
| 48 | |
| 49 | |
| 50 | Author |
| 51 | ------ |
| 52 | Written by Linus Torvalds <torvalds@osdl.org> |
| 53 | |
| 54 | Documentation |
| 55 | -------------- |
| 56 | Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>. |
| 57 | |
| 58 | GIT |
| 59 | --- |
Christian Couder | 9e1f0a8 | 2008-06-06 09:07:32 +0200 | [diff] [blame] | 60 | Part of the linkgit:git[1] suite |