]> git.phdru.name Git - git-scripts.git/commitdiff
Use `git branch --verbose` instead of `git status --branch`
authorOleg Broytman <phd@phdru.name>
Sun, 19 Mar 2017 18:44:14 +0000 (21:44 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 19 Mar 2017 18:44:14 +0000 (21:44 +0300)
Remove ls-not-pushed-carefully - it's no longer needed
as ls-not-pushed doesn't call `git status` anymore.

ls-not-pushed
ls-not-pushed-carefully [deleted file]

index bce8858e4e7bd9e155dd2649b0f0ddf73baa3af0..506019032b285f5975682ef83a423b4091754756 100755 (executable)
@@ -2,4 +2,4 @@
 
 exec "`dirname \"$0\"`"/do-all \
    'test "$g" = "$d/.git" || continue; cd "$d" &&' \
-   'git status --branch --short | grep -q "ahead\|behind" && echo "$d"'
+   'git branch --verbose | grep -q "ahead\|behind" && echo "$d"'
diff --git a/ls-not-pushed-carefully b/ls-not-pushed-carefully
deleted file mode 100755 (executable)
index 85fc57c..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#! /bin/sh
-
-LSTMP="$HOME"/tmp/ls-not-pushed-carefully.tmp
-export LSTMP
-trap 'exec rm -rf "$LSTMP"' 0 HUP INT QUIT TERM
-
-cd "`dirname \"$0\"`" && prog_dir="`pwd`" &&
-rm -rf "$LSTMP" && mkdir "$LSTMP" &&
-
-"$prog_dir"/do-all \
-   'test "$g" = "$d/.git" || continue;' \
-   'rsync -aW --del --protocol=28 "$d" "$LSTMP" && cd "$LSTMP/$b" &&' \
-   'git status --branch --short | grep -q "ahead\|behind" && echo "$d"'