diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-06-30 14:30:30 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-06-30 14:30:30 -0700 |
| commit | a013680162522425ab74d12f1d0cd4df1a389383 (patch) | |
| tree | 70c82cc81831017a752d1c649325fae151898dbb | |
| parent | The fourth batch (diff) | |
| parent | cocci: matching (multiple) identifiers (diff) | |
| download | git-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.cocci | 3 |
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(...) {<... |
