Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-status: use ls-files --others --directory for untracked list.
author
Junio C Hamano
<junkio@cox.net>
Sat, 7 Jan 2006 22:32:07 +0000
(14:32 -0800)
committer
Junio C Hamano
<junkio@cox.net>
Sun, 8 Jan 2006 05:34:03 +0000
(21:34 -0800)
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
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
0907fed
)
diff --git
a/git-status.sh
b/git-status.sh
index 50ccd24efb707d615e560dfbd38abec5b2b25b20..10d781c92f82197845ce30c67f796d99379e93cd 100755
(executable)
--- 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
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
--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";
--exclude-per-directory=.gitignore
fi |
perl -e '$/ = "\0";