]> granicus.if.org Git - git/commitdiff
bash: teach __git_ps1 about REVERT_HEAD
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 31 Mar 2013 00:30:48 +0000 (01:30 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Apr 2013 02:07:26 +0000 (19:07 -0700)
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-prompt.sh

index 341422a766efe70580817d98a574d95bd9ddebf9..756a9514591c7664c82c93d3a6d50d91f46857d8 100644 (file)
@@ -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