coccinelle: update commit.cocci
authorDerrick Stolee <dstolee@microsoft.com>
Fri, 13 Jul 2018 16:30:46 +0000 (16:30 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Jul 2018 17:54:31 +0000 (10:54 -0700)
A recent patch series renamed the get_commit_tree_from_graph method but
forgot to update the coccinelle script that exempted it from rules
regarding accesses to 'maybe_tree'. This fixes that oversight to bring
the coccinelle scripts back to a good state.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/coccinelle/commit.cocci

index a7e9215..aec3345 100644 (file)
@@ -12,7 +12,7 @@ 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(...) {...