Skip to content

Instantly share code, notes, and snippets.

@Ikke
Last active January 13, 2017 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ikke/7bb9f213b9bfda89b2bbc43aefd6bfd0 to your computer and use it in GitHub Desktop.
Save Ikke/7bb9f213b9bfda89b2bbc43aefd6bfd0 to your computer and use it in GitHub Desktop.
#!/bin/bash
while read oldval newval refname
do
for commit in $(git rev-list $oldval..$newval)
do
if ! git diff --quiet ${commit}~1 $commit .gitignore
then
echo 'ignore changed'
fi
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment