]> git.phdru.name Git - git-scripts.git/blobdiff - ls-not-pushed
Feat(fix-detached-head): Replace `branch -r` by `for-each-ref`
[git-scripts.git] / ls-not-pushed
index 461431f54b4521be1fb05b26da623773d7b0a1af..506019032b285f5975682ef83a423b4091754756 100755 (executable)
@@ -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"'