To solve this problem, I wrote a script to do this. Hope this is helpful to others.
#!/usr/bin/env bash GIT_REPO_ROOT=`git rev-parse --show-toplevel` # cd ${GIT_REPO_ROOT} for f in `git diff --name-only`; do MY_DIFF=`git diff -w ${GIT_REPO_ROOT}/${f}` if [[ ! ${MY_DIFF} == "" ]]; then echo ${GIT_REPO_ROOT}/${f} fi done
This script reduces the result from 88 files ('git diff --name-only') to 8 files.
source share