Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- FILES="$(git ls-tree -r --name-only HEAD .)"
- COUNT=0
- IFS="$(printf "\n\b")"
- for f in $FILES; do
- NUMBER_OF_LINES=$(git log --oneline --grep=revert $f | wc -l)
- let IS_ODD=$NUMBER_OF_LINES%2
- if [ $IS_ODD -gt 0 ];
- then
- echo "$f -- $IS_ODD"
- fi
- done
Add Comment
Please, Sign In to add comment