object-store: use one oid_array per subdirectory for loose cache
[git.git] / contrib / coccinelle / commit.cocci
blobc49aa558f0fe6b74b9d4d4a7779f0a9f32747388
1 @@
2 expression c;
3 @@
4 - &c->maybe_tree->object.oid
5 + get_commit_tree_oid(c)
7 @@
8 expression c;
9 @@
10 - c->maybe_tree->object.oid.hash
11 + get_commit_tree_oid(c)->hash
13 // These excluded functions must access c->maybe_tree direcly.
15 identifier f !~ "^(get_commit_tree|get_commit_tree_in_graph_one|load_tree_for_commit)$";
16 expression c;
18   f(...) {<...
19 - c->maybe_tree
20 + get_commit_tree(c)
21   ...>}
24 expression c;
25 expression s;
27 - get_commit_tree(c) = s
28 + c->maybe_tree = s