From: Oleg Broytman Date: Sun, 19 Mar 2017 18:44:14 +0000 (+0300) Subject: Use `git branch --verbose` instead of `git status --branch` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=d208ffbad2671a5c15f4795939ad80c4be6a02ad;p=git-scripts.git Use `git branch --verbose` instead of `git status --branch` Remove ls-not-pushed-carefully - it's no longer needed as ls-not-pushed doesn't call `git status` anymore. --- diff --git a/ls-not-pushed b/ls-not-pushed index bce8858..5060190 100755 --- a/ls-not-pushed +++ b/ls-not-pushed @@ -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 index 85fc57c..0000000 --- a/ls-not-pushed-carefully +++ /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"'