mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 23:46:24 -04:00
Add check for no changes in the tree (no sub-modules)
This commit is contained in:
parent
e91da7c2b4
commit
f2a41c54b1
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Reference in a new issue