Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] bash: teach __git_ps1 about REVERT_HEAD

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:56:35

Robin Rosenberg [off-list ref] writes:
quoted hunk
Signed-off-by: Robin Rosenberg <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help