From f2a41c54b1a2d64cf09c537308976392e8a403b7 Mon Sep 17 00:00:00 2001 From: Sasha Khamkov Date: Sun, 6 Apr 2014 00:10:08 +0300 Subject: [PATCH] Add check for no changes in the tree (no sub-modules) --- bin/git-changelog | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/git-changelog b/bin/git-changelog index f109dcc..2d00cc8 100755 --- a/bin/git-changelog +++ b/bin/git-changelog @@ -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 )