git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 3/3] git-status: use ls-files --others --directory for untracked list.

From
Junio C Hamano <junkio@cox.net>
Date
Jan 7, 2006, 22:32 UTC
Message-ID
<7vslrzacuw.fsf@assigned-by-dhcp.cox.net>

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 |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
6bb87e11a937bbaab78c589fb82ff3a84a0597b8
diff --git a/git-status.sh b/git-status.sh
index 50ccd24..10d781c 100755
--- a/git-status.sh
+++ b/git-status.sh
@@ -83,11 +83,11 @@ report "Changed but not updated" "use gi
 
 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";
-- 
1.0.7-g0263
Message 1 of 1 in “git-status: use ls-files --others --directory for untracked list.”
  1. 3/3 git-status: use ls-files --others --directory for untracked list.Junio C Hamano, Jan 7, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.