Merge branch 'pk/rebase-in-c-4-opts'
[gitweb.git] / contrib / coccinelle / commit.cocci
index a7e9215ffc370d945ba2ac28b7eff9e8cb1d0679..c49aa558f0fe6b74b9d4d4a7779f0a9f32747388 100644 (file)
@@ -12,13 +12,13 @@ expression c;
 
 // These excluded functions must access c->maybe_tree direcly.
 @@
-identifier f !~ "^(get_commit_tree|get_commit_tree_in_graph|load_tree_for_commit)$";
+identifier f !~ "^(get_commit_tree|get_commit_tree_in_graph_one|load_tree_for_commit)$";
 expression c;
 @@
-  f(...) {...
+  f(...) {<...
 - c->maybe_tree
 + get_commit_tree(c)
-  ...}
+  ...>}
 
 @@
 expression c;