(created/git2cpp/diff.md)=
# git2cpp diff

```{parsed-literal}
Show changes between commits, commit and working tree, etc


git2cpp diff [OPTIONS] [&lt;files&gt;(0x)]


POSITIONALS:
&nbsp; &lt;files&gt; TEXT                tree-ish objects to compare

OPTIONS:
&nbsp; -h,     --help              Print this help message and exit
&nbsp;         --stat              Generate a diffstat
&nbsp;         --shortstat         Output only the last line of --stat
&nbsp;         --numstat           Machine-friendly --stat
&nbsp;         --summary           Output a condensed summary
&nbsp;         --name-only         Show only names of changed files
&nbsp;         --name-status       Show names and status of changed files
&nbsp;         --raw               Generate the diff in raw format
&nbsp;         --cached, --staged  Compare staged changes to HEAD
&nbsp;         --no-index          Compare two files on filesystem
&nbsp; -R                          Swap two inputs
&nbsp; -a,     --text              Treat all files as text
&nbsp;         --ignore-space-at-eol
&nbsp;                             Ignore changes in whitespace at EOL
&nbsp; -b,     --ignore-space-change
&nbsp;                             Ignore changes in amount of whitespace
&nbsp; -w,     --ignore-all-space  Ignore whitespace when comparing lines
&nbsp;         --patience          Generate diff using patience algorithm
&nbsp;         --minimal           Spend extra time to find smallest diff
&nbsp; -M,     --find-renames UINT [50]
&nbsp;                             Detect renames
&nbsp; -C,     --find-copies UINT [50]
&nbsp;                             Detect copies
&nbsp;         --find-copies-harder
&nbsp;                             Detect copies from unmodified files
&nbsp; -B,     --break-rewrites    Detect file rewrites
&nbsp; -U,     --unified UINT      Lines of context
&nbsp;         --inter-hunk-context UINT
&nbsp;                             Context between hunks
&nbsp;         --abbrev UINT       Abbreviation length for object names
&nbsp;         --color             Show colored diff
&nbsp;         --no-color          Turn off colored diff
```
