Skip to content

Instantly share code, notes, and snippets.

@lcallarec
Created February 2, 2018 21:00
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 lcallarec/2c37551cac32701edc7f26ad75b5ffdc to your computer and use it in GitHub Desktop.
Save lcallarec/2c37551cac32701edc7f26ad75b5ffdc to your computer and use it in GitHub Desktop.
MODIFIED_FILES=`git ls-files -m`
if [ -n "$MODIFIED_FILES" ]
then
echo "Modified files. Can't continue."
fi
CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD`
for commit in $(git rev-list master)
do
CI=$(git checkout $commit)
C=$(ls -lrt | wc -l)
echo $C
done
git checkout $CURRENT_BRANCH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment