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>
This commit is contained in:
@ -83,11 +83,11 @@ report "Changed but not updated" "use git-update-index to mark for commit"
|
|||||||
|
|
||||||
if test -f "$GIT_DIR/info/exclude"
|
if test -f "$GIT_DIR/info/exclude"
|
||||||
then
|
then
|
||||||
git-ls-files -z --others \
|
git-ls-files -z --others --directory \
|
||||||
--exclude-from="$GIT_DIR/info/exclude" \
|
--exclude-from="$GIT_DIR/info/exclude" \
|
||||||
--exclude-per-directory=.gitignore
|
--exclude-per-directory=.gitignore
|
||||||
else
|
else
|
||||||
git-ls-files -z --others \
|
git-ls-files -z --others --directory \
|
||||||
--exclude-per-directory=.gitignore
|
--exclude-per-directory=.gitignore
|
||||||
fi |
|
fi |
|
||||||
perl -e '$/ = "\0";
|
perl -e '$/ = "\0";
|
||||||
|
Reference in New Issue
Block a user