threads / patch / 2993

patch, 3 partsgit-status: use ls-files --others --directory for untracked list.

Subject: [PATCH 3/3] git-status: use ls-files --others --directory for untracked list.

## tl;dr

One message between Jan 7, 2006 and Jan 7, 2006. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Junio C Hamano· Jan 7, 2006, 22:32 UTC · lore

This shortens "Untracked files" list by using --directory option when running ls-files --others.

Signed-off-by: Junio C Hamano <junkio@cox.net>
---
 git-status.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
6bb87e11a937bbaab78c589fb82ff3a84a0597b8
Show changes to git-status.sh +2 −2
diff --git a/git-status.sh b/git-status.sh
index 50ccd24..10d781c 100755
--- a/git-status.sh
+++ b/git-status.sh
@@ -83,11 +83,11 @@ report "Changed but not updated" "use gi
 
 if test -f "$GIT_DIR/info/exclude"
 then
-    git-ls-files -z --others \
+    git-ls-files -z --others --directory \
 	--exclude-from="$GIT_DIR/info/exclude" \
         --exclude-per-directory=.gitignore
 else
-    git-ls-files -z --others \
+    git-ls-files -z --others --directory \
         --exclude-per-directory=.gitignore
 fi |
 perl -e '$/ = "\0";
-- 
1.0.7-g0263

← back to recent threads