From: Patrick Steinhardt Date: Tue, 18 Feb 2025 09:20:54 +0000 (+0100) Subject: Makefile: skip reftable library for Coccinelle X-Git-Tag: v2.50.0-rc0~136^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8f6a2dbe34017e616f8bb35bc668538eb11a8d33;p=thirdparty%2Fgit.git Makefile: skip reftable library for Coccinelle The reftable library does not use any of the common helpers that the Git project has. Consequently, most of the rules that we have in Coccinelle do not apply to the library at all and may even generate false positives when a pattern can be converted to use a Git helper function. Exclude reftable library sources from being checked by Coccinelle to avoid such false positives. Signed-off-by: Patrick Steinhardt Signed-off-by: Junio C Hamano --- diff --git a/Makefile b/Makefile index cd0806e1e6..83f1df5502 100644 --- a/Makefile +++ b/Makefile @@ -955,7 +955,7 @@ FOUND_SOURCE_FILES := $(filter-out $(GENERATED_H),$(shell $(SOURCES_CMD))) FOUND_C_SOURCES = $(filter %.c,$(FOUND_SOURCE_FILES)) FOUND_H_SOURCES = $(filter %.h,$(FOUND_SOURCE_FILES)) -COCCI_SOURCES = $(filter-out $(THIRD_PARTY_SOURCES),$(FOUND_C_SOURCES)) +COCCI_SOURCES = $(filter-out $(THIRD_PARTY_SOURCES) reftable/%,$(FOUND_C_SOURCES)) LIB_H = $(FOUND_H_SOURCES)