]> git.phdru.name Git - git-scripts.git/commitdiff
Do not show untracked files in git status
authorOleg Broytman <phd@phdru.name>
Wed, 3 Aug 2016 12:06:10 +0000 (15:06 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 3 Aug 2016 12:08:00 +0000 (15:08 +0300)
ls-not-pushed
ls-not-pushed-carefully
ls-status [moved from ls-dirty with 100% similarity]
ls-status-carefully [moved from ls-dirty-carefully with 100% similarity]

index da3b8011449f8caea5b6a5098a8ad8713b967324..9834b6063658bb342aa63ac024da1b62ae522099 100755 (executable)
@@ -2,4 +2,5 @@
 
 exec "`dirname \"$0\"`"/do-all \
    'test "$g" = "$d/.git" || continue; cd "$d" &&' \
-   'test -n "`git status -b | grep "ahead\|behind"`" && echo "$d"'
+   'test -n "`git status --branch --untracked-files=no |
+      grep "ahead\|behind"`" && echo "$d"'
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
similarity index 100%
rename from ls-dirty
rename to ls-status
similarity index 100%
rename from ls-dirty-carefully
rename to ls-status-carefully