git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-prompt: fix sequencer/todo detection

From
Danny Lin <danny0838@gmail.com>
Date
Mar 25, 2022, 14:53 UTC
Message-ID
<20220325145301.3370-1-danny0838@gmail.com>
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: Junio C Hamano
Message 1 of 5 in “git-prompt: fix sequencer/todo detection”
  1. git-prompt: fix sequencer/todo detectionDanny Lin, Mar 25, 2022
  2. Junio C HamanoMar 26, 2022
  3. Junio C HamanoMar 28, 2022
  4. Johannes SchindelinApr 7, 2022
  5. Junio C HamanoApr 7, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.