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

Re: [PATCH] bash: teach __git_ps1 about REVERT_HEAD

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 1, 2013, 02:51 UTC
Message-ID
<7vk3onm08z.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1364689848-52647-1-git-send-email-robin.rosenberg@dewire.com>
Robin Rosenberg <robin.rosenberg@dewire.com> writes:
Show 15 quoted lines
> Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
> ---
>  contrib/completion/git-prompt.sh | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/contrib/completion/git-prompt.sh b/contrib/completion/git-prompt.sh
> index 341422a..756a951 100644
> --- a/contrib/completion/git-prompt.sh
> +++ b/contrib/completion/git-prompt.sh
> @@ -282,6 +282,8 @@ __git_ps1 ()
>  				r="|MERGING"
>  			elif [ -f "$g/CHERRY_PICK_HEAD" ]; then
>  				r="|CHERRY-PICKING"
> +			elif [ -f "$g/REVERT_HEAD" ]; then
> +				r="|REVERTING"
Obviously a good thing to do; thanks.
>  			elif [ -f "$g/BISECT_LOG" ]; then
>  				r="|BISECTING"
>  			fi
Previous: Robin RosenbergNext: Matthieu Moy
Message 2 of 6 in “bash: teach __git_ps1 about REVERT_HEAD”
  1. bash: teach __git_ps1 about REVERT_HEADRobin Rosenberg, Mar 31, 2013
  2. Junio C HamanoApr 1, 2013
  3. 1/2 status: show 'revert' state and status hintMatthieu Moy, Apr 2, 2013
  4. 2/2 status: show commit sha1 in "You are currently reverting" messageMatthieu Moy, Apr 2, 2013
  5. Junio C HamanoApr 2, 2013
  6. Matthieu MoyApr 2, 2013

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.