aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/coccinelle
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2018-07-13 16:30:46 +0000
committerJunio C Hamano <gitster@pobox.com>2018-07-16 10:54:31 -0700
commitb18ef13a3fc5ed6e77980f67a7f3ca89050c1715 (patch)
tree939900e6cd02cb6c423e5c4be8ec42835daf8592 /contrib/coccinelle
parentd4f65b8d141e041eb5e558cd9e763873e29863b9 (diff)
downloadgit-b18ef13a3fc5ed6e77980f67a7f3ca89050c1715.tar.gz
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>
Diffstat (limited to 'contrib/coccinelle')
-rw-r--r--contrib/coccinelle/commit.cocci2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/coccinelle/commit.cocci b/contrib/coccinelle/commit.cocci
index a7e9215ffc..aec3345adb 100644
--- a/contrib/coccinelle/commit.cocci
+++ b/contrib/coccinelle/commit.cocci
@@ -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(...) {...