Add the unpublished script

This commit is contained in:
Andrew Miner
2015-05-13 12:46:47 -07:00
parent 24892e1eff
commit 5b1fbede18
+18
View File
@@ -0,0 +1,18 @@
#!/bin/bash
MODULE=$(basename $PWD)
QUIET="NO"
while [[ "$1" != "" ]]; do
case "$1" in
"-q") QUIET="YES";;
esac
shift
done
CHANGES=$(git log --oneline origin/master..master | while read LINE; do echo " $LINE"; done)
if [[ "$CHANGES" != "" ]]; then
printf "\nUnpublished changes for $MODULE:\n$CHANGES\n\n"
elif [[ "$QUIET" == "NO" ]]; then
printf "No unpublished changes for $MODULE\n\n"
fi