From 6747e12f8f57b1c62308d3d509927f0af6f2498d Mon Sep 17 00:00:00 2001 From: vg Date: Sat, 20 Jul 2019 08:29:59 +0200 Subject: modify git-sync to simpler and one-command change detection --- scripts/git-sync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/git-sync b/scripts/git-sync index cddacdd..e0117d7 100755 --- a/scripts/git-sync +++ b/scripts/git-sync @@ -37,7 +37,7 @@ if [ "$verbose" -ne 0 ]; then echo 'Sync: git autocommit' fi git add -A "./$(git rev-parse --show-cdup)" -if git status --porcelain | grep -q .; then +if ! git diff --cached --quiet; then git status --short git commit -m "Auto-commit on ${hostident}" fi -- cgit v1.2.3