From: Junio C Hamano Date: Mon, 08 Jun 2026 21:36:36 GMT Subject: Re: [PATCH 0/6] t: add lint-style.pl and convert grep to test_grep Message-ID: In-Reply-To: "Michael Montalbo via GitGitGadget" writes: > The test suite has a test_grep wrapper that prints file contents on > assertion failure, making debugging easier. Many tests still use bare 'grep' > for assertions, which silently swallows context on failure. > > This series adds a lint tool (lint-style.pl) to mechanically detect and > convert these, then applies it across the test suite. I do not think we want an automated tool that rewrites the source files. I was hoping that we would get a patch or two that _adds_ to existing test-lint framework (i.e., 'test-grep' that 'test-lint' target depends on in t/Makefile) that gives diagnosis in a similar fashion as test-lint-shell-syntax and test-chainlint do. Also some existing uses of "grep" are not end-user facing and should not be rewritten to "test_grep".