Skip to content

Commit f2a41c5

Browse files
committed
Add check for no changes in the tree (no sub-modules)
1 parent e91da7c commit f2a41c5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/git-changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ LIST=false
55
TAG="n.n.n"
66
GIT_LOG_OPTS=""
77

8+
if git diff-index --quiet --ignore-submodules HEAD --; then
9+
echo 'No changes to log.';
10+
exit 1;
11+
fi
12+
813
while [ "$1" != "" ]; do
914
case $1 in
1015
-l | --list )

0 commit comments

Comments
 (0)