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

[PATCH] bash: teach __git_ps1 about REVERT_HEAD

From
Robin Rosenberg <robin.rosenberg@dewire.com>
Date
Mar 31, 2013, 00:30 UTC
Message-ID
<1364689848-52647-1-git-send-email-robin.rosenberg@dewire.com>
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"
 			elif [ -f "$g/BISECT_LOG" ]; then
 				r="|BISECTING"
 			fi
-- 
1.8.1.337.gf3f86a8
Next: Junio C Hamano
Message 1 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.