mirror of
https://github.com/tj/git-extras.git
synced 2026-09-11 16:06:20 -04:00
Merge pull request #220 from sanusart/master
Add check for no changes in the tree (no sub-modules)
This commit is contained in:
commit
619232ef86
|
|
@ -5,6 +5,11 @@ LIST=false
|
||||||
TAG="n.n.n"
|
TAG="n.n.n"
|
||||||
GIT_LOG_OPTS=""
|
GIT_LOG_OPTS=""
|
||||||
|
|
||||||
|
if git diff-index --quiet --ignore-submodules HEAD --; then
|
||||||
|
echo 'No changes to log.';
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
|
||||||
while [ "$1" != "" ]; do
|
while [ "$1" != "" ]; do
|
||||||
case $1 in
|
case $1 in
|
||||||
-l | --list )
|
-l | --list )
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue