X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=ls-not-pushed;h=bce8858e4e7bd9e155dd2649b0f0ddf73baa3af0;hb=4fcca6c30797d33a16623912886dea20ef4b673c;hp=7e9bb4e59f172f61605966b9d1fb5e0273b4429b;hpb=396a2fe8b0c7352fac32db0f7c0e65b92930904b;p=git-scripts.git diff --git a/ls-not-pushed b/ls-not-pushed index 7e9bb4e..bce8858 100755 --- a/ls-not-pushed +++ b/ls-not-pushed @@ -2,5 +2,4 @@ exec "`dirname \"$0\"`"/do-all \ 'test "$g" = "$d/.git" || continue; cd "$d" &&' \ - 'test -n "`git status --branch --short | grep "ahead\|behind"`" && - echo "$d"' + 'git status --branch --short | grep -q "ahead\|behind" && echo "$d"'