Last active
November 9, 2020 21:38
-
-
Save dotancohen/83e721218d512607d50b5372af078544 to your computer and use it in GitHub Desktop.
Show diff for files not in .svnignore file. BE CAREFUL TO SPECIFY FILENAMES WHEN COMMITTING!
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 | |
# BE CAREFUL TO SPECIFY FILENAMES WHEN COMMITTING! | |
IGNORE_FILENAME=.svnignore | |
svn status | awk '{print $2}' | while read FILE ; do | |
grep -x $FILE $IGNORE_FILENAME > /dev/null | |
STATUS=$? | |
if ! $(exit $STATUS) ; then | |
svn diff $FILE | |
fi | |
done | |
echo | |
echo "$(tput setaf 2)==== $(tput setaf 3)BE CAREFUL TO SPECIFY FILENAMES WHEN COMMITTING! $(tput setaf 2)====$(tput sgr0)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment