]> git.99rst.org Git - git.git/commit
Merge branch 'mm/test-grep-lint'
authorJunio C Hamano <redacted>
Sun, 19 Jul 2026 17:42:17 +0000 (10:42 -0700)
committerJunio C Hamano <redacted>
Sun, 19 Jul 2026 17:42:18 +0000 (10:42 -0700)
commitc9a92e239f17895e8119a0c1803544bb457c8755
tree2dab064a52c8b30f7e373a2af85d763a87325485
parentf8ec2c6aeedf361f9921a2a1900fbb6f90c4b6d8
parentbe7112d1bb97a0f4c4d724484e8940193ab5366d
Merge branch 'mm/test-grep-lint'

The test suite has been updated to use the 'test_grep' helper instead
of bare 'grep' for test assertions, allowing file contents to be
printed on failure for easier debugging.  A new 'greplint' linter has
been introduced to detect and prevent new bare 'grep' assertions from
being added to the test suite.

* mm/test-grep-lint:
  t: add greplint to detect bare grep assertions
  t: convert grep assertions to test_grep
  t: fix Lexer line count for $() inside double-quoted strings
  t: extract chainlint's parser into shared module
  t: fix grep assertions missing file arguments
  t/README: document test_grep helper
47 files changed:
t/README
t/for-each-ref-tests.sh
t/lib-shell-parser.pl
t/t0001-init.sh
t/t0012-help.sh
t/t0021-conversion.sh
t/t0040-parse-options.sh
t/t0450-txt-doc-vs-help.sh
t/t0610-reftable-basics.sh
t/t1007-hash-object.sh
t/t1300-config.sh
t/t1400-update-ref.sh
t/t1403-show-ref.sh
t/t1410-reflog.sh
t/t1502-rev-parse-parseopt.sh
t/t1800-hook.sh
t/t3200-branch.sh
t/t3420-rebase-autostash.sh
t/t3903-stash.sh
t/t4067-diff-partial-clone.sh
t/t4141-apply-too-large.sh
t/t4200-rerere.sh
t/t4202-log.sh
t/t4216-log-bloom.sh
t/t5304-prune.sh
t/t5310-pack-bitmaps.sh
t/t5328-commit-graph-64bit-time.sh
t/t5510-fetch.sh
t/t5512-ls-remote.sh
t/t5529-push-errors.sh
t/t5551-http-fetch-smart.sh
t/t5616-partial-clone.sh
t/t6040-tracking-info.sh
t/t6120-describe.sh
t/t6422-merge-rename-corner-cases.sh
t/t6500-gc.sh
t/t6600-test-reach.sh
t/t7030-verify-tag.sh
t/t7450-bad-git-dotfiles.sh
t/t7508-status.sh
t/t7510-signed-commit.sh
t/t7527-builtin-fsmonitor.sh
t/t7600-merge.sh
t/t7800-difftool.sh
t/t7810-grep.sh
t/t7900-maintenance.sh
t/t9902-completion.sh
git clone https://git.99rst.org/PROJECT