Skip to content

Details of the Diff Output

ParkinT edited this page Oct 25, 2014 · 2 revisions

Interpreting the output from the 'diff' command is simple once you understand the format.

Short form - XY PATH1 -> PATH2 For paths with merge conflicts, X and 'Y' show the modification states of each side of the merge.

For paths that do not have merge conflicts, X shows the status of the index, and Y shows the status of the work tree. For untracked paths, XY are ??.

Other status codes can be interpreted as follows: ' ' = unmodified

  • 'M' = modified
  • 'A' = added
  • 'D' = deleted
  • 'R' = renamed
  • 'C' = copied
  • 'U' = updated but unmerged

Clone this wiki locally