git-diff-files.txt 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. git-diff-files(1)
  2. =================
  3. NAME
  4. ----
  5. git-diff-files - Compares files in the working tree and the index
  6. SYNOPSIS
  7. --------
  8. [verse]
  9. 'git diff-files' [-q] [-0|-1|-2|-3|-c|--cc] [<common diff options>] [<path>...]
  10. DESCRIPTION
  11. -----------
  12. Compares the files in the working tree and the index. When paths
  13. are specified, compares only those named paths. Otherwise all
  14. entries in the index are compared. The output format is the
  15. same as for 'git diff-index' and 'git diff-tree'.
  16. OPTIONS
  17. -------
  18. include::diff-options.txt[]
  19. -1 --base::
  20. -2 --ours::
  21. -3 --theirs::
  22. -0::
  23. Diff against the "base" version, "our branch" or "their
  24. branch" respectively. With these options, diffs for
  25. merged entries are not shown.
  26. +
  27. The default is to diff against our branch (-2) and the
  28. cleanly resolved paths. The option -0 can be given to
  29. omit diff output for unmerged entries and just show "Unmerged".
  30. -c::
  31. --cc::
  32. This compares stage 2 (our branch), stage 3 (their
  33. branch) and the working tree file and outputs a combined
  34. diff, similar to the way 'diff-tree' shows a merge
  35. commit with these flags.
  36. -q::
  37. Remain silent even on nonexistent files
  38. include::diff-format.txt[]
  39. GIT
  40. ---
  41. Part of the linkgit:git[1] suite