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

[PATCH] t4202: fix patternType setting in --invert-grep test

From
René Scharfe <l.s.r@web.de>
Date
Dec 17, 2021, 16:48 UTC
Message-ID
<79dcebc0-e569-cc8a-4702-c572b062ed6d@web.de>
Actually use extended regexes as indicated in the comment.
Signed-off-by: René Scharfe <l.s.r@web.de>
---
 t/t4202-log.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/t4202-log.sh b/t/t4202-log.sh
index 7884e3d46b..f51b57b4a2 100755
--- a/t/t4202-log.sh
+++ b/t/t4202-log.sh
@@ -250,7 +250,7 @@ test_expect_success 'log --invert-grep --grep' '
 	test_cmp expect actual &&

 	# POSIX extended
-	git -c grep.patternType=basic log --pretty="tformat:%s" --invert-grep --grep=t[h] --grep=S[e]c >actual &&
+	git -c grep.patternType=extended log --pretty="tformat:%s" --invert-grep --grep=t[h] --grep=S[e]c >actual &&
 	test_cmp expect actual &&

 	# PCRE
--
2.34.0
Next: Junio C Hamano
Message 1 of 2 in “t4202: fix patternType setting in --invert-grep test”
  1. t4202: fix patternType setting in --invert-grep testRené Scharfe, Dec 17, 2021
  2. Junio C HamanoDec 18, 2021

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.