{"thread":{"id":"38789","subject":"[PATCH] git prompt: Use toplevel to find untracked files.","startedAt":"2015-03-13T01:45:12Z","lastAt":"2015-03-13T01:45:12Z","messageCount":1,"participants":["Cody A Taylor"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"257617","messageId":"20150313014332.11094.18357@catuvm","threadId":"38789","inReplyTo":null,"subject":"[PATCH] git prompt: Use toplevel to find untracked files.","fromName":"Cody A Taylor","fromEmail":"cody.taylor@maternityneighborhood.com","sentAt":"2015-03-13T01:45:12Z","receivedAt":"2015-03-13T01:45:12Z","isPatch":true,"sender":{"key":"cody.taylor@maternityneighborhood.com","avatar":null},"body":">From 3e4e22e93bf07355b40ba0abcb3a15c4941cfee7 Mon Sep 17 00:00:00 2001\nFrom: Cody A Taylor <codemister99@yahoo.com>\nDate: Thu, 12 Mar 2015 20:36:44 -0400\nSubject: [PATCH] git prompt: Use toplevel to find untracked files.\n\nThe __git_ps1() prompt function would not show an untracked\nstate when the current working directory was not a parent of\nthe untracked file.\n\nSigned-off-by: Cody A Taylor <codemister99@yahoo.com>\n---\n contrib/completion/git-prompt.sh | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)\n\ndiff --git a/contrib/completion/git-prompt.sh b/contrib/completion/git-prompt.sh\nindex 214e859f99e7..f0d8a2669236 100644\n--- a/contrib/completion/git-prompt.sh\n+++ b/contrib/completion/git-prompt.sh\n@@ -487,7 +487,8 @@ __git_ps1 ()\n \n \t\tif [ -n \"${GIT_PS1_SHOWUNTRACKEDFILES-}\" ] &&\n \t\t   [ \"$(git config --bool bash.showUntrackedFiles)\" != \"false\" ] &&\n-\t\t   git ls-files --others --exclude-standard --error-unmatch -- '*' >/dev/null 2>/dev/null\n+\t\t   git ls-files --others --exclude-standard --error-unmatch -- \\\n+\t\t     \"$(git rev-parse --show-toplevel)/*\" >/dev/null 2>/dev/null\n \t\tthen\n \t\t\tu=\"%${ZSH_VERSION+%}\"\n \t\tfi\n-- \n2.3.2\n"}]}