summaryrefslogtreecommitdiff
path: root/contrib/coccinelle
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-11-14 00:12:57 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-11-14 08:22:40 (GMT)
commit07de3fd84049c90d8d873599c43c3979f37166aa (patch)
treeda5873027b3ba52fe7dd9beb878240c60c45bfbc /contrib/coccinelle
parent4d5430f7479d45c3fca088984a08ec093f870b5b (diff)
downloadgit-07de3fd84049c90d8d873599c43c3979f37166aa.zip
git-07de3fd84049c90d8d873599c43c3979f37166aa.tar.gz
git-07de3fd84049c90d8d873599c43c3979f37166aa.tar.bz2
commit: prepare get_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 8c6a71b..4018e6e 100644
--- a/contrib/coccinelle/the_repository.pending.cocci
+++ b/contrib/coccinelle/the_repository.pending.cocci
@@ -107,3 +107,11 @@ expression G;
- in_merge_bases_many(
+ repo_in_merge_bases_many(the_repository,
E, F, G);
+
+@@
+expression E;
+expression F;
+@@
+- get_commit_buffer(
++ repo_get_commit_buffer(the_repository,
+ E, F);