From d208ffbad2671a5c15f4795939ad80c4be6a02ad Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 19 Mar 2017 21:44:14 +0300 Subject: [PATCH] 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. --- ls-not-pushed | 2 +- ls-not-pushed-carefully | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) delete mode 100755 ls-not-pushed-carefully 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"' -- 2.39.2