coccinelle: update commit.cocci
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>
Derrick Stolee committed
Jul 13, 2018 at 16:30 UTC
b18ef13a3fc5ed6e77980f67a7f3ca89050c1715
1 file changed
+1
-1
contrib/coccinelle/commit.cocci
+1
-1
@@ -12,7 +12,7 @@ expression c;
12
13
// These excluded functions must access c->maybe_tree direcly.
14
@@
15
-identifier f !~ "^(get_commit_tree|get_commit_tree_in_graph|load_tree_for_commit)$";
15
+identifier f !~ "^(get_commit_tree|get_commit_tree_in_graph_one|load_tree_for_commit)$";
16
expression c;
17
@@
18
f(...) {...