]> git.ipfire.org Git - thirdparty/git.git/commit
coccicheck: fail "make" when it fails
authorJunio C Hamano <gitster@pobox.com>
Mon, 23 Jun 2025 16:14:11 +0000 (09:14 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Jun 2025 16:33:31 +0000 (09:33 -0700)
commit819d3a55fc5a530f90309c2d208101765e8fe78d
treed746e813d25c8c31b808d6807ecd7c38323db792
parentf93ff170b93a1782659637824b25923245ac9dd1
coccicheck: fail "make" when it fails

With "make coccicheck", we generate contrib/coccinelle/*.cocci.patch
files that contain changes suggested by semantic patches, but "make"
succeeds.  Admittedly, not many developers may run "make coccicheck"
in the first place, but it makes it harder to notice when they do
run it after they introduced an iffy piece of code.

Check that the resulting cocci.patch files are all empty.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile