From 79ba07250233fb6894906aba99726858c948ddea Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 3 Aug 2016 15:18:48 +0300 Subject: [PATCH] Use git status --branch --short --- ls-not-pushed | 3 ++- ls-not-pushed-carefully | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ls-not-pushed b/ls-not-pushed index 9834b60..461431f 100755 --- a/ls-not-pushed +++ b/ls-not-pushed @@ -3,4 +3,5 @@ exec "`dirname \"$0\"`"/do-all \ 'test "$g" = "$d/.git" || continue; cd "$d" &&' \ 'test -n "`git status --branch --untracked-files=no | - grep "ahead\|behind"`" && echo "$d"' + 'test -n "`git status --branch --short | grep "ahead\|behind"`" && + echo "$d"' diff --git a/ls-not-pushed-carefully b/ls-not-pushed-carefully index f5d5928..0ae1935 100755 --- a/ls-not-pushed-carefully +++ b/ls-not-pushed-carefully @@ -7,7 +7,7 @@ LSTMP="$HOME"/tmp/ls-not-pushed-carefully.tmp \ "$prog_dir"/do-all \ 'test "$g" = "$d/.git" || continue;' \ 'rsync -aW --del --protocol=28 "$d" "$LSTMP" && cd "$LSTMP/$b" &&' \ - 'test -n "`git status --branch --untracked-files=no | - grep "ahead\|behind"`" && echo "$d"' && + 'test -n "`git status --branch --short | grep "ahead\|behind"`" && + echo "$d"' && cd "$HOME"/tmp && exec rm -rf ls-not-pushed-carefully.tmp -- 2.39.2