Skip to content

Commit

Permalink
git-status: use ls-files --others --directory for untracked list.
Browse files Browse the repository at this point in the history
This shortens "Untracked files" list by using --directory option
when running ls-files --others.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Jan 8, 2006
1 parent 0907fed commit 9eafb7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 9eafb7b

Please sign in to comment.