]> git.ipfire.org Git - thirdparty/git.git/blobdiff - contrib/coccinelle/the_repository.pending.cocci
object-store: prepare has_{sha1, object}_file to handle any repo
[thirdparty/git.git] / contrib / coccinelle / the_repository.pending.cocci
index a7ac9e0c46b6e5752da8b884f743eca86d1097c4..46f3a1b23aa93986d9396fe6edbfd5ceca370236 100644 (file)
@@ -10,3 +10,33 @@ expression G;
 - read_object_file(
 + repo_read_object_file(the_repository,
   E, F, G)
+
+@@
+expression E;
+@@
+- has_sha1_file(
++ repo_has_sha1_file(the_repository,
+  E)
+
+@@
+expression E;
+expression F;
+@@
+- has_sha1_file_with_flags(
++ repo_has_sha1_file_with_flags(the_repository,
+  E)
+
+@@
+expression E;
+@@
+- has_object_file(
++ repo_has_object_file(the_repository,
+  E)
+
+@@
+expression E;
+expression F;
+@@
+- has_object_file_with_flags(
++ repo_has_object_file_with_flags(the_repository,
+  E)