# [PATCH] Improve the description of GIT_PS1_SHOWUPSTREAM

2 messages from 2012-09-24 to 2012-09-24. Participants: Jonathan "Duke" Leto, Junio C Hamano.
Thread: https://gitlist.dev/t/31638

## Jonathan "Duke" Leto, 2012-09-24 17:41

Subject: [PATCH] Improve the description of GIT_PS1_SHOWUPSTREAM
Message-ID: <1348508486-63176-1-git-send-email-jonathan@leto.net>
URL: https://gitlist.dev/e/1348508486-63176-1-git-send-email-jonathan%40leto.net

```
From: "Jonathan \"Duke\" Leto" <jonathan@leto.net>

Describe what '=' means in the output of __git_ps1 when using
GIT_PS1_SHOWUPSTREAM, which was not previously described.

Signed-off-by: Jonathan "Duke" Leto <jonathan@leto.net>
---
 contrib/completion/git-prompt.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/contrib/completion/git-prompt.sh b/contrib/completion/git-prompt.sh
index 29b1ec9..bf20491 100644
--- a/contrib/completion/git-prompt.sh
+++ b/contrib/completion/git-prompt.sh
@@ -34,9 +34,10 @@
 #
 # If you would like to see the difference between HEAD and its upstream,
 # set GIT_PS1_SHOWUPSTREAM="auto".  A "<" indicates you are behind, ">"
-# indicates you are ahead, and "<>" indicates you have diverged.  You
-# can further control behaviour by setting GIT_PS1_SHOWUPSTREAM to a
-# space-separated list of values:
+# indicates you are ahead, "<>" indicates you have diverged and "="
+# indicates that there is no difference. You can further control
+# behaviour by setting GIT_PS1_SHOWUPSTREAM to a space-separated list
+# of values:
 #
 #     verbose       show number of commits ahead/behind (+/-) upstream
 #     legacy        don't use the '--count' option available in recent
-- 
1.7.12.1.397.gbdf37ee

```

## Junio C Hamano, 2012-09-24 18:49

Subject: Re: [PATCH] Improve the description of GIT_PS1_SHOWUPSTREAM
Message-ID: <7v7grjz268.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7v7grjz268.fsf%40alter.siamese.dyndns.org
In-Reply-To: <1348508486-63176-1-git-send-email-jonathan@leto.net>

```
"Jonathan \"Duke\" Leto" <jonathan@leto.net> writes:

> From: "Jonathan \"Duke\" Leto" <jonathan@leto.net>
>
> Describe what '=' means in the output of __git_ps1 when using
> GIT_PS1_SHOWUPSTREAM, which was not previously described.
>
> Signed-off-by: Jonathan "Duke" Leto <jonathan@leto.net>
> ---

Makes sense; will directly apply to 'maint'.

>  contrib/completion/git-prompt.sh | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/contrib/completion/git-prompt.sh b/contrib/completion/git-prompt.sh
> index 29b1ec9..bf20491 100644
> --- a/contrib/completion/git-prompt.sh
> +++ b/contrib/completion/git-prompt.sh
> @@ -34,9 +34,10 @@
>  #
>  # If you would like to see the difference between HEAD and its upstream,
>  # set GIT_PS1_SHOWUPSTREAM="auto".  A "<" indicates you are behind, ">"
> -# indicates you are ahead, and "<>" indicates you have diverged.  You
> -# can further control behaviour by setting GIT_PS1_SHOWUPSTREAM to a
> -# space-separated list of values:
> +# indicates you are ahead, "<>" indicates you have diverged and "="
> +# indicates that there is no difference. You can further control
> +# behaviour by setting GIT_PS1_SHOWUPSTREAM to a space-separated list
> +# of values:
>  #
>  #     verbose       show number of commits ahead/behind (+/-) upstream
>  #     legacy        don't use the '--count' option available in recent

```
