]> git.ipfire.org Git - thirdparty/git.git/blobdiff - contrib/coccinelle/the_repository.pending.cocci
commit: allow parse_commit* to handle any repo
[thirdparty/git.git] / contrib / coccinelle / the_repository.pending.cocci
index 46f3a1b23aa93986d9396fe6edbfd5ceca370236..b185fe0a1d86f80ef137ff69415d9500a8989dd9 100644 (file)
@@ -40,3 +40,27 @@ expression F;
 - has_object_file_with_flags(
 + repo_has_object_file_with_flags(the_repository,
   E)
+
+@@
+expression E;
+expression F;
+expression G;
+@@
+- parse_commit_internal(
++ repo_parse_commit_internal(the_repository,
+  E, F, G)
+
+@@
+expression E;
+expression F;
+@@
+- parse_commit_gently(
++ repo_parse_commit_gently(the_repository,
+  E, F)
+
+@@
+expression E;
+@@
+- parse_commit(
++ repo_parse_commit(the_repository,
+  E)