summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-01-07 14:32:07 -0800
committerJunio C Hamano <junkio@cox.net>2006-01-07 21:34:03 -0800
commit9eafb7bad1a1982f1c01f4c7394fe7bc8e6ea3ae (patch)
tree4985bda998b37abc6d9d9e0f0edd602f80ce648e
parent0907fedbeea12aa78a66b9d765b0e618a180b6ff (diff)
downloadgit-9eafb7bad1a1982f1c01f4c7394fe7bc8e6ea3ae.tar.gz
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>
-rwxr-xr-xgit-status.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-status.sh b/git-status.sh
index 50ccd24efb..10d781c92f 100755
--- a/git-status.sh
+++ b/git-status.sh
@@ -83,11 +83,11 @@ report "Changed but not updated" "use git-update-index to mark for commit"
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";