Skip to content

Commit ad62fd0

Browse files
committed
Merge branch 'rr/prompt-revert-head' into maint
* rr/prompt-revert-head: bash: teach __git_ps1 about REVERT_HEAD
2 parents 845241d + 3ee4452 commit ad62fd0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contrib/completion/git-prompt.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,8 @@ __git_ps1 ()
282282
r="|MERGING"
283283
elif [ -f "$g/CHERRY_PICK_HEAD" ]; then
284284
r="|CHERRY-PICKING"
285+
elif [ -f "$g/REVERT_HEAD" ]; then
286+
r="|REVERTING"
285287
elif [ -f "$g/BISECT_LOG" ]; then
286288
r="|BISECTING"
287289
fi

0 commit comments

Comments
 (0)