summaryrefslogtreecommitdiff
path: root/contrib/coccinelle
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-11-14 00:12:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-11-14 08:22:40 (GMT)
commit70315373ae51b45b9ca0ac43df396bb9035fe449 (patch)
treee89acff8d3af8b5e613c8a7dee5c34f3cab4e4b1 /contrib/coccinelle
parent07de3fd84049c90d8d873599c43c3979f37166aa (diff)
downloadgit-70315373ae51b45b9ca0ac43df396bb9035fe449.zip
git-70315373ae51b45b9ca0ac43df396bb9035fe449.tar.gz
git-70315373ae51b45b9ca0ac43df396bb9035fe449.tar.bz2
commit: prepare repo_unuse_commit_buffer to handle any repo
Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/coccinelle')
-rw-r--r--contrib/coccinelle/the_repository.pending.cocci8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/coccinelle/the_repository.pending.cocci b/contrib/coccinelle/the_repository.pending.cocci
index 4018e6e..516f19f 100644
--- a/contrib/coccinelle/the_repository.pending.cocci
+++ b/contrib/coccinelle/the_repository.pending.cocci
@@ -115,3 +115,11 @@ expression F;
- get_commit_buffer(
+ repo_get_commit_buffer(the_repository,
E, F);
+
+@@
+expression E;
+expression F;
+@@
+- unuse_commit_buffer(
++ repo_unuse_commit_buffer(the_repository,
+ E, F);