summaryrefslogtreecommitdiff
path: root/contrib/coccinelle
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-11-14 00:12:59 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-11-14 08:22:40 (GMT)
commit424510ed193fdc49cacc832d8795677d0cc54461 (patch)
tree8ffbfbc99f63b73e29a4e92a60807cfb627cec07 /contrib/coccinelle
parent70315373ae51b45b9ca0ac43df396bb9035fe449 (diff)
downloadgit-424510ed193fdc49cacc832d8795677d0cc54461.zip
git-424510ed193fdc49cacc832d8795677d0cc54461.tar.gz
git-424510ed193fdc49cacc832d8795677d0cc54461.tar.bz2
commit: prepare logmsg_reencode to handle arbitrary repositories
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.cocci9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/coccinelle/the_repository.pending.cocci b/contrib/coccinelle/the_repository.pending.cocci
index 516f19f..f5b42cf 100644
--- a/contrib/coccinelle/the_repository.pending.cocci
+++ b/contrib/coccinelle/the_repository.pending.cocci
@@ -123,3 +123,12 @@ expression F;
- unuse_commit_buffer(
+ repo_unuse_commit_buffer(the_repository,
E, F);
+
+@@
+expression E;
+expression F;
+expression G;
+@@
+- logmsg_reencode(
++ repo_logmsg_reencode(the_repository,
+ E, F, G);