summaryrefslogtreecommitdiff
path: root/t/t7501-commit-basic-functionality.sh
diff options
context:
space:
mode:
authorMichael Montalbo <mmontalbo@gmail.com>2026-07-06 05:01:53 +0000
committerJunio C Hamano <gitster@pobox.com>2026-07-06 13:26:01 -0700
commitafd278b35a9aff3ca75fcc393dac53f0a0c1eae6 (patch)
treee2d3296f62dd0400c18b558a386806d8341f9f7c /t/t7501-commit-basic-functionality.sh
parentea97ad8d017de0c9037451a78008a0fd60abea0c (diff)
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 <mmontalbo@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7501-commit-basic-functionality.sh')
0 files changed, 0 insertions, 0 deletions