pgit.sh: Fix detection of pending commits

git diff exit status just catches file changes, not
not file additions, removals or renames.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2018-12-16 11:12:22 +00:00
commit ce5111e7eb

View file

@ -90,7 +90,7 @@ commit()
if [ "$PGIT_KEEP_GOING" != y ]; then set -e; fi
for d in $pdirs; do
cur=`expr $cur + 1`
if run_git -C $d diff --quiet; then
if run_git -C $d diff-index --quiet HEAD --; then
log "Nothing to commit"
continue
fi