X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=ls-not-pushed;h=506019032b285f5975682ef83a423b4091754756;hb=68dcecea7c125ced02c18fa641c21ac5d3ce05aa;hp=461431f54b4521be1fb05b26da623773d7b0a1af;hpb=79ba07250233fb6894906aba99726858c948ddea;p=git-scripts.git diff --git a/ls-not-pushed b/ls-not-pushed index 461431f..5060190 100755 --- a/ls-not-pushed +++ b/ls-not-pushed @@ -2,6 +2,4 @@ exec "`dirname \"$0\"`"/do-all \ 'test "$g" = "$d/.git" || continue; cd "$d" &&' \ - 'test -n "`git status --branch --untracked-files=no | - 'test -n "`git status --branch --short | grep "ahead\|behind"`" && - echo "$d"' + 'git branch --verbose | grep -q "ahead\|behind" && echo "$d"'