From 309577a0b53a652d6e02486fea046fb837afb2f2 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 3 Aug 2016 15:06:10 +0300 Subject: [PATCH] Do not show untracked files in git status --- ls-not-pushed | 3 ++- ls-not-pushed-carefully | 3 ++- ls-dirty => ls-status | 0 ls-dirty-carefully => ls-status-carefully | 0 4 files changed, 4 insertions(+), 2 deletions(-) rename ls-dirty => ls-status (100%) rename ls-dirty-carefully => ls-status-carefully (100%) 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 -- 2.39.2