aboutsummaryrefslogtreecommitdiff
path: root/tools/coccinelle/the_repository.cocci
diff options
context:
space:
mode:
Diffstat (limited to 'tools/coccinelle/the_repository.cocci')
-rw-r--r--tools/coccinelle/the_repository.cocci18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/coccinelle/the_repository.cocci b/tools/coccinelle/the_repository.cocci
new file mode 100644
index 0000000000..f1129f7985
--- /dev/null
+++ b/tools/coccinelle/the_repository.cocci
@@ -0,0 +1,18 @@
+// Fully migrated "the_repository" additions
+@@
+@@
+(
+// TODO: remove the rules below and the macros from tree.h after the
+// next Git release.
+- parse_tree
++ repo_parse_tree
+|
+- parse_tree_gently
++ repo_parse_tree_gently
+|
+- parse_tree_indirect
++ repo_parse_tree_indirect
+)
+ (
++ the_repository,
+ ...)