summaryrefslogtreecommitdiff
path: root/contrib/coccinelle
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-11-14 00:13:00 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-11-14 08:22:40 (GMT)
commitf54fbf5eefb9740a318344fe400f54f047cc4bf1 (patch)
treec24d8e186e763729b503571c26b0247601debb23 /contrib/coccinelle
parent424510ed193fdc49cacc832d8795677d0cc54461 (diff)
downloadgit-f54fbf5eefb9740a318344fe400f54f047cc4bf1.zip
git-f54fbf5eefb9740a318344fe400f54f047cc4bf1.tar.gz
git-f54fbf5eefb9740a318344fe400f54f047cc4bf1.tar.bz2
pretty: prepare format_commit_message 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.cocci10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/coccinelle/the_repository.pending.cocci b/contrib/coccinelle/the_repository.pending.cocci
index f5b42cf..2ee702e 100644
--- a/contrib/coccinelle/the_repository.pending.cocci
+++ b/contrib/coccinelle/the_repository.pending.cocci
@@ -132,3 +132,13 @@ expression G;
- logmsg_reencode(
+ repo_logmsg_reencode(the_repository,
E, F, G);
+
+@@
+expression E;
+expression F;
+expression G;
+expression H;
+@@
+- format_commit_message(
++ repo_format_commit_message(the_repository,
+ E, F, G, H);