From: Oleg Broytman Date: Wed, 3 Aug 2016 12:06:10 +0000 (+0300) Subject: Do not show untracked files in git status X-Git-Url: https://git.phdru.name/?p=git-scripts.git;a=commitdiff_plain;h=309577a0b53a652d6e02486fea046fb837afb2f2 Do not show untracked files in git status --- diff --git a/ls-not-pushed b/ls-not-pushed index da3b801..9834b60 100755 --- a/ls-not-pushed +++ b/ls-not-pushed @@ -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"' diff --git a/ls-not-pushed-carefully b/ls-not-pushed-carefully index 29384e7..2bd0159 100755 --- a/ls-not-pushed-carefully +++ b/ls-not-pushed-carefully @@ -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 diff --git a/ls-dirty b/ls-status similarity index 100% rename from ls-dirty rename to ls-status diff --git a/ls-dirty-carefully b/ls-status-carefully similarity index 100% rename from ls-dirty-carefully rename to ls-status-carefully