git diff --stat exclude certain files
Trying to adapt the answers from Want to exclude file from "git diff" for the --stat flag and failing - the accepted answer (create a driver) seems unix only (redirect to /bin/true, whatever this means) plus it creates a driver and assigns it to the file kind of permanently, while I am looking for a switch to temporarily disable the diff for a file (or rather some files). The scripting solution : git diff `git status -s |grep -v ^\ D |grep -v file/to/exclude.txt |cut -b4-` actually calls git status and edits its output - while what I want is to instruct git diff itself to ignore some files