Skip to content

Commit 9b57d6f

Browse files
committed
cocci: matching multiple identifiers
1 parent 32c60a6 commit 9b57d6f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/coccinelle/commit.cocci

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ expression s;
2525
// functions, then the recommended transformation will be bogus with
2626
// repo_get_commit_tree() on the LHS.
2727
@@
28-
identifier f !~ "^(repo_get_commit_tree|get_commit_tree_in_graph_one|load_tree_for_commit|set_commit_tree)$";
28+
identifier f != { repo_get_commit_tree, get_commit_tree_in_graph_one,
29+
load_tree_for_commit, set_commit_tree };
2930
expression c;
3031
@@
3132
f(...) {<...

0 commit comments

Comments
 (0)