Last active
December 6, 2015 10:11
-
-
Save jchannon/3e1e3fc45778ef4b196e to your computer and use it in GitHub Desktop.
List commits that ONLY contain whitespace changes. What about those that have valid changes and whitespace changes??
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
branch=dnx | |
for commit in $(git rev-list --no-merges $branch); do | |
if [ -z "$(git diff -b $commit^..$commit)" ]; then | |
echo "$commit only modifies whitespace." | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment