From: Danny Lin <danny0838@gmail.com>
To: git develop <git@vger.kernel.org>
Cc: Danny Lin <danny0838@gmail.com>
Subject: [PATCH] git-prompt: fix sequencer/todo detection
Date: Fri, 25 Mar 2022 22:53:01 +0800 [thread overview]
Message-ID: <20220325145301.3370-1-danny0838@gmail.com> (raw)
Previous case does not correctly check the "p ..." pattern.
Signed-off-by: Danny Lin <danny0838@gmail.com>
---
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
;;
--
2.35.1.windows.2
next reply other threads:[~2022-03-25 14:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-25 14:53 Danny Lin [this message]
2022-03-26 0:15 ` [PATCH] git-prompt: fix sequencer/todo detection Junio C Hamano
2022-03-28 21:53 ` Junio C Hamano
2022-04-07 21:45 ` Johannes Schindelin
2022-04-07 22:43 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220325145301.3370-1-danny0838@gmail.com \
--to=danny0838@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).