]> git.phdru.name Git - git-scripts.git/blobdiff - ls-not-pushed-carefully
Do not show untracked files in git status
[git-scripts.git] / ls-not-pushed-carefully
index 29384e703fcb77289e2b7097b6ff992f6c39e88d..2bd0159f00db52d4701ffe67dc2d8f1c288f3d5f 100755 (executable)
@@ -7,6 +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 -b | grep "ahead\|behind"`" && echo "$d"' &&
+   'test -n "`git status --branch --untracked-files=no |
+      grep "ahead\|behind"`" && echo "$d"' &&
 
 cd "$HOME"/tmp && exec rm -rf ls-not-pushed-carefully.tmp