From: Junio C Hamano Date: Sat, 26 Mar 2022 00:15:15 GMT Subject: Re: [PATCH] git-prompt: fix sequencer/todo detection Message-ID: In-Reply-To: <20220325145301.3370-1-danny0838@gmail.com> Danny Lin writes: > Previous case does not correctly check the "p ..." pattern. > > Signed-off-by: Danny Lin > --- > contrib/completion/git-prompt.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/contrib/completion/git-prompt.sh b/contrib/completion/git-prompt.sh > index db7c0068fb..8ae341a306 100644 > --- a/contrib/completion/git-prompt.sh > +++ b/contrib/completion/git-prompt.sh > @@ -315,7 +315,7 @@ __git_sequencer_status () > elif __git_eread "$g/sequencer/todo" todo > then > case "$todo" in > - p[\ \ ]|pick[\ \ ]*) > + p[\ \ ]*|pick[\ \ ]*) > r="|CHERRY-PICKING" > return 0 > ;; The original obviously is broken ;-) Will queue. Thanks.