]> git.99rst.org Git - git.git/commit
t/README: document test_grep helper
authorMichael Montalbo <redacted>
Mon, 6 Jul 2026 05:01:53 +0000 (05:01 +0000)
committerJunio C Hamano <redacted>
Mon, 6 Jul 2026 20:26:01 +0000 (13:26 -0700)
commitafd278b35a9aff3ca75fcc393dac53f0a0c1eae6
treee2d3296f62dd0400c18b558a386806d8341f9f7c
parentea97ad8d017de0c9037451a78008a0fd60abea0c
t/README: document test_grep helper

test_grep is a wrapper around grep for test assertions that prints
the file contents on failure for easier debugging.  It also accepts
'!' as its first argument for negation, which preserves the
diagnostic output that '! test_grep' would suppress.

Despite being widely used (and the preferred replacement for bare
grep in assertions), test_grep has no entry in t/README alongside
the other documented helpers like test_cmp and test_line_count.
Add one.

Signed-off-by: Michael Montalbo <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/README
git clone https://git.99rst.org/PROJECT