{"thread":{"id":"38788","subject":"(unknown)","startedAt":"2015-03-13T01:34:37Z","lastAt":"2015-03-13T02:00:53Z","messageCount":2,"participants":["cody.taylor@maternityneighborhood.com","Duy Nguyen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"257616","messageId":"20150313012620.11094.40096@catuvm","threadId":"38788","inReplyTo":null,"subject":"(unknown)","fromName":"","fromEmail":"cody.taylor@maternityneighborhood.com","sentAt":"2015-03-13T01:34:37Z","receivedAt":"2015-03-13T01:34:37Z","isPatch":false,"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"},{"id":"257618","messageId":"CACsJy8B3anJdGHpRN4Mr_A3Uhhsth_Uyizd=iM46Jky-ZMjvrQ@mail.gmail.com","threadId":"38788","inReplyTo":"20150313012620.11094.40096@catuvm","subject":"Re:","fromName":"Duy Nguyen","fromEmail":"pclouds@gmail.com","sentAt":"2015-03-13T02:00:53Z","receivedAt":"2015-03-13T02:00:53Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Fri, Mar 13, 2015 at 8:34 AM,  <cody.taylor@maternityneighborhood.com> wrote:\n> From 3e4e22e93bf07355b40ba0abcb3a15c4941cfee7 Mon Sep 17 00:00:00 2001\n> From: Cody A Taylor <codemister99@yahoo.com>\n> Date: Thu, 12 Mar 2015 20:36:44 -0400\n> Subject: [PATCH] git prompt: Use toplevel to find untracked files.\n>\n> The __git_ps1() prompt function would not show an untracked\n> state when the current working directory was not a parent of\n> the untracked file.\n>\n> Signed-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>\n> diff --git a/contrib/completion/git-prompt.sh b/contrib/completion/git-prompt.sh\n> index 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>                 if [ -n \"${GIT_PS1_SHOWUNTRACKEDFILES-}\" ] &&\n>                    [ \"$(git config --bool bash.showUntrackedFiles)\" != \"false\" ] &&\n> -                  git ls-files --others --exclude-standard --error-unmatch -- '*' >/dev/null 2>/dev/null\n> +                  git ls-files --others --exclude-standard --error-unmatch -- \\\n> +                    \"$(git rev-parse --show-toplevel)/*\" >/dev/null 2>/dev/null\n\nOr make it a bit simpler, just replace '*' with ':/*'.\n-- \nDuy\n"}]}