]> git.ipfire.org Git - thirdparty/git.git/blobdiff - contrib/coccinelle/commit.cocci
Merge branch 'ak/commit-graph-to-slab'
[thirdparty/git.git] / contrib / coccinelle / commit.cocci
index 778e4704f6a2baa8484a13fea3a0cf4d2b35f44b..af6dd4c20cae87d3364b59cedac80936f8ff3355 100644 (file)
@@ -32,3 +32,21 @@ expression c;
 - c->maybe_tree
 + repo_get_commit_tree(specify_the_right_repo_here, c)
   ...>}
+
+@@
+struct commit *c;
+expression E;
+@@
+(
+- c->generation = E;
++ commit_graph_data_at(c)->generation = E;
+|
+- c->graph_pos = E;
++ commit_graph_data_at(c)->graph_pos = E;
+|
+- c->generation
++ commit_graph_generation(c)
+|
+- c->graph_pos
++ commit_graph_position(c)
+)