git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Improve the description of GIT_PS1_SHOWUPSTREAM

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 24, 2012, 18:49 UTC
Message-ID
<7v7grjz268.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1348508486-63176-1-git-send-email-jonathan@leto.net>
"Jonathan \"Duke\" Leto" <jonathan@leto.net> writes:
Show 7 quoted lines
> 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'.
Show 21 quoted lines
>  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
Previous: Jonathan "Duke" Leto
Message 2 of 2 in “Improve the description of GIT_PS1_SHOWUPSTREAM”
  1. Improve the description of GIT_PS1_SHOWUPSTREAMJonathan "Duke" Leto, Sep 24, 2012
  2. Junio C HamanoSep 24, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.