—cached Do not consider the on-disk file at all.

—check Warn if changes introduce whitespace errors.

-G <regex> Look for differences whose added or removed line matches the given <regex>.

git diff-index Compares content and mode of blobs between the index and repository.

-S <string> Look for differences that introduce or remove an instance of <string>.

-U<n> Generate diffs with <n> lines of context (can be 0) instead of the usual 3. Implies -p.

Facts, Thoughts and Opinions


  •   Subtopics

  •   Writings

  Sources & Bookmarks

Name/Link Date
git diff-index 2014-07-15