Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-12-01 12:38:07 +0300
committerJunio C Hamano <gitster@pobox.com>2022-12-01 12:38:07 +0300
commit805265fcf7a737664a8321aaf4a0587b78435184 (patch)
tree912f6344110324689a5944a639d6977ec6d1566a /contrib/coccinelle
parent215ae4f264df28d495fd788b5ac6730f10e9cb4b (diff)
parentcddd68ae33667c4bfc81c81f74815bb2ba0e4f3a (diff)
Merge branch 'ab/fewer-the-index-macros'
Squelch warnings from Coccinelle * ab/fewer-the-index-macros: cocci: avoid "should ... be a metavariable" warnings
Diffstat (limited to 'contrib/coccinelle')
-rw-r--r--contrib/coccinelle/index-compatibility.cocci12
1 files changed, 8 insertions, 4 deletions
diff --git a/contrib/coccinelle/index-compatibility.cocci b/contrib/coccinelle/index-compatibility.cocci
index 4c1b890c3e..8520f03128 100644
--- a/contrib/coccinelle/index-compatibility.cocci
+++ b/contrib/coccinelle/index-compatibility.cocci
@@ -1,22 +1,26 @@
// the_index.* variables
@@
+identifier AC = active_cache;
+identifier ACC = active_cache_changed;
+identifier ACT = active_cache_tree;
@@
(
-- active_cache
+- AC
+ the_index.cache
|
-- active_cache_changed
+- ACC
+ the_index.cache_changed
|
-- active_cache_tree
+- ACT
+ the_index.cache_tree
)
@@
+identifier AN = active_nr;
identifier f != prepare_to_commit;
@@
f(...) {<...
-- active_nr
+- AN
+ the_index.cache_nr
...>}