{"thread":{"id":"49672","subject":"[PATCH] Move upstream status from gitstring to f","startedAt":"2018-10-25T14:21:32Z","lastAt":"2018-10-25T14:21:32Z","messageCount":1,"participants":["Khinshan Khan"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"361516","messageId":"1540477285-18308-1-git-send-email-khanshan501@gmail.com","threadId":"49672","inReplyTo":null,"subject":"[PATCH] Move upstream status from gitstring to f","fromName":"Khinshan Khan","fromEmail":"khanshan501@gmail.com","sentAt":"2018-10-25T14:21:25Z","receivedAt":"2018-10-25T14:21:32Z","isPatch":true,"sender":{"key":"khanshan501@gmail.com","avatar":null},"body":"Upstream status should be spaced even if other statuses don't exist\nfor consistency of view. Eg: if a repository is freshly cloned, the\nprompt shows \"(master=)\" but with an additional status like a change,\nit'll show \"(master *=)\". Now it'll show \"(master =)\" and accounts for\nother states as well.\n\nSigned-off-by: Khinshan Khan <khanshan501@gmail.com>\n---\n contrib/completion/git-prompt.sh | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/contrib/completion/git-prompt.sh b/contrib/completion/git-prompt.sh\nindex 983e419..4715d33 100644\n--- a/contrib/completion/git-prompt.sh\n+++ b/contrib/completion/git-prompt.sh\n@@ -517,8 +517,8 @@ __git_ps1 ()\n \t\tb=\"\\${__git_ps1_branch_name}\"\n \tfi\n \n-\tlocal f=\"$w$i$s$u\"\n-\tlocal gitstring=\"$c$b${f:+$z$f}$r$p\"\n+\tlocal f=\"$w$i$s$u$p\"\n+\tlocal gitstring=\"$c$b${f:+$z$f}$r\"\n \n \tif [ $pcmode = yes ]; then\n \t\tif [ \"${__git_printf_supports_v-}\" != yes ]; then\n-- \n2.7.4\n\n"}]}