summaryrefslogtreecommitdiffstats
path: root/contrib/coccinelle/index-compatibility.pending.cocci
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--contrib/coccinelle/index-compatibility.pending.cocci24
1 files changed, 24 insertions, 0 deletions
diff --git a/contrib/coccinelle/index-compatibility.pending.cocci b/contrib/coccinelle/index-compatibility.pending.cocci
new file mode 100644
index 0000000..01f875d
--- /dev/null
+++ b/contrib/coccinelle/index-compatibility.pending.cocci
@@ -0,0 +1,24 @@
+// "the_repository" simple cases
+@@
+@@
+(
+- read_cache
++ repo_read_index
+)
+ (
++ the_repository,
+ ...)
+
+// "the_index" simple cases
+@@
+@@
+(
+- discard_cache
++ discard_index
+|
+- cache_name_pos
++ index_name_pos
+)
+ (
++ &the_index,
+ ...)