git2cpp diff

git2cpp diff#

Show changes between commits, commit and working tree, etc


git2cpp diff [OPTIONS] [<files>...]


POSITIONALS:
  <files> TEXT ...            tree-ish objects to compare

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