Documentation / git-diff-files.txton commit Merge branch 'py/diff-submodule' (2855e70)
   1git-diff-files(1)
   2=================
   3
   4NAME
   5----
   6git-diff-files - Compares files in the working tree and the index
   7
   8
   9SYNOPSIS
  10--------
  11'git-diff-files' [-q] [-0|-1|-2|-3|-c|--cc|--no-index] [<common diff options>] [<path>...]
  12
  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::
  25        Diff against the "base" version, "our branch" or "their
  26        branch" respectively.  With these options, diffs for
  27        merged 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
  33-c,--cc::
  34        This compares stage 2 (our branch), stage 3 (their
  35        branch) and the working tree file and outputs a combined
  36        diff, similar to the way 'diff-tree' shows a merge
  37        commit with these flags.
  38
  39--no-index::
  40        Compare the two given files / directories.
  41
  42-q::
  43        Remain silent even on nonexistent files
  44
  45Output format
  46-------------
  47include::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---
  60Part of the linkgit:git[7] suite