Add check for no changes in the tree (no sub-modules)

This commit is contained in:
Sasha Khamkov 2014-04-06 00:10:08 +03:00
parent e91da7c2b4
commit f2a41c54b1

View file

@ -5,6 +5,11 @@ LIST=false
TAG="n.n.n"
GIT_LOG_OPTS=""
if git diff-index --quiet --ignore-submodules HEAD --; then
echo 'No changes to log.';
exit 1;
fi
while [ "$1" != "" ]; do
case $1 in
-l | --list )