Created
September 10, 2016 16:09
-
-
Save indrisepos/767291f4f1a06ab2d5bc99220202e05e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/bin/bash | |
| # based on: http://stackoverflow.com/a/35115651 | |
| git status | grep modified | cut -d' ' -f 4 | while read x; do | |
| x1="$(git show HEAD:$x | dos2unix | md5sum | cut -d' ' -f 1 )" | |
| x2="$(cat $x | dos2unix | md5sum | cut -d' ' -f 1 )" | |
| if [ "$x1" != "$x2" ]; then | |
| echo "$x NOT IDENTICAL" | |
| fi | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment