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 while calculating the (simple) --stat (just lines changed). I went through git-diff docs but can't seem to find such an option. Anyone give me a hand ?
$ git --version
git version 2.6.1.windows.1