From: Oleg Broytman Date: Wed, 3 Aug 2016 12:18:48 +0000 (+0300) Subject: Use git status --branch --short X-Git-Url: https://git.phdru.name/?p=git-scripts.git;a=commitdiff_plain;h=79ba07250233fb6894906aba99726858c948ddea Use git status --branch --short --- 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