aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-06-30 14:30:30 -0700
committerJunio C Hamano <gitster@pobox.com>2025-06-30 14:30:30 -0700
commita013680162522425ab74d12f1d0cd4df1a389383 (patch)
tree70c82cc81831017a752d1c649325fae151898dbb
parentThe fourth batch (diff)
parentcocci: matching (multiple) identifiers (diff)
downloadgit-a013680162522425ab74d12f1d0cd4df1a389383.tar.gz
git-a013680162522425ab74d12f1d0cd4df1a389383.zip
Merge branch 'jc/cocci-avoid-regexp-constraint'
Avoid regexp_constraint and instead use comparison_constraint when listing functions to exclude from application of coccinelle rules, as spatch can be built with different regexp engine X-<. * jc/cocci-avoid-regexp-constraint: cocci: matching (multiple) identifiers
-rw-r--r--contrib/coccinelle/commit.cocci3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/coccinelle/commit.cocci b/contrib/coccinelle/commit.cocci
index af6dd4c20c..c5284604c5 100644
--- a/contrib/coccinelle/commit.cocci
+++ b/contrib/coccinelle/commit.cocci
@@ -25,7 +25,8 @@ expression s;
// functions, then the recommended transformation will be bogus with
// repo_get_commit_tree() on the LHS.
@@
-identifier f !~ "^(repo_get_commit_tree|get_commit_tree_in_graph_one|load_tree_for_commit|set_commit_tree)$";
+identifier f != { repo_get_commit_tree, get_commit_tree_in_graph_one,
+ load_tree_for_commit, set_commit_tree };
expression c;
@@
f(...) {<...