{"thread":{"id":"2993","subject":"[PATCH 3/3] git-status: use ls-files --others --directory for untracked list.","startedAt":"2006-01-07T22:32:07Z","lastAt":"2006-01-07T22:32:07Z","messageCount":1,"participants":["Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":3},"messages":[{"id":"14269","messageId":"7vslrzacuw.fsf@assigned-by-dhcp.cox.net","threadId":"2993","inReplyTo":null,"subject":"[PATCH 3/3] git-status: use ls-files --others --directory for untracked list.","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2006-01-07T22:32:07Z","receivedAt":"2006-01-07T22:32:07Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"This shortens \"Untracked files\" list by using --directory option\nwhen running ls-files --others.\n\nSigned-off-by: Junio C Hamano <junkio@cox.net>\n\n---\n\n git-status.sh |    4 ++--\n 1 files changed, 2 insertions(+), 2 deletions(-)\n\n6bb87e11a937bbaab78c589fb82ff3a84a0597b8\ndiff --git a/git-status.sh b/git-status.sh\nindex 50ccd24..10d781c 100755\n--- a/git-status.sh\n+++ b/git-status.sh\n@@ -83,11 +83,11 @@ report \"Changed but not updated\" \"use gi\n \n if test -f \"$GIT_DIR/info/exclude\"\n then\n-    git-ls-files -z --others \\\n+    git-ls-files -z --others --directory \\\n \t--exclude-from=\"$GIT_DIR/info/exclude\" \\\n         --exclude-per-directory=.gitignore\n else\n-    git-ls-files -z --others \\\n+    git-ls-files -z --others --directory \\\n         --exclude-per-directory=.gitignore\n fi |\n perl -e '$/ = \"\\0\";\n-- \n1.0.7-g0263\n"}]}