Re: [PATCH] bash: teach __git_ps1 about REVERT_HEAD
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