git-status: use ls-files --others --directory for untracked list.
This shortens "Untracked files" list by using --directory option when running ls-files --others. Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Jan 7, 2006 at 14:32 UTC
9eafb7bad1a1982f1c01f4c7394fe7bc8e6ea3ae
1 file changed
+2
-2
git-status.sh
+2
-2
@@ -83,11 +83,11 @@ report "Changed but not updated" "use git-update-index to mark for commit"
83
84
if test -f "$GIT_DIR/info/exclude"
85
then
86
- git-ls-files -z --others \
86
+ git-ls-files -z --others --directory \
87
--exclude-from="$GIT_DIR/info/exclude" \
88
--exclude-per-directory=.gitignore
89
else
90
- git-ls-files -z --others \
90
+ git-ls-files -z --others --directory \
91
--exclude-per-directory=.gitignore
92
fi |
93
perl -e '$/ = "\0";