]>
Commit | Line | Data |
---|---|---|
2e27bd77 DS |
1 | @@ |
2 | expression c; | |
3 | @@ | |
4 | - &c->maybe_tree->object.oid | |
5 | + get_commit_tree_oid(c) | |
6 | ||
7 | @@ | |
8 | expression c; | |
9 | @@ | |
10 | - c->maybe_tree->object.oid.hash | |
11 | + get_commit_tree_oid(c)->hash | |
12 | ||
13 | @@ | |
a133c40b | 14 | identifier f !~ "^set_commit_tree$"; |
2e27bd77 | 15 | expression c; |
a133c40b | 16 | expression s; |
2e27bd77 | 17 | @@ |
4d168e74 | 18 | f(...) {<... |
a133c40b NTND |
19 | - c->maybe_tree = s |
20 | + set_commit_tree(c, s) | |
4d168e74 | 21 | ...>} |
2e27bd77 | 22 | |
15beaaa3 | 23 | // These excluded functions must access c->maybe_tree directly. |
a133c40b NTND |
24 | // Note that if c->maybe_tree is written somewhere outside of these |
25 | // functions, then the recommended transformation will be bogus with | |
301b8c7f | 26 | // repo_get_commit_tree() on the LHS. |
2e27bd77 | 27 | @@ |
301b8c7f | 28 | identifier f !~ "^(repo_get_commit_tree|get_commit_tree_in_graph_one|load_tree_for_commit|set_commit_tree)$"; |
2e27bd77 | 29 | expression c; |
2e27bd77 | 30 | @@ |
a133c40b NTND |
31 | f(...) {<... |
32 | - c->maybe_tree | |
301b8c7f | 33 | + repo_get_commit_tree(specify_the_right_repo_here, c) |
a133c40b | 34 | ...>} |
c49c82aa AK |
35 | |
36 | @@ | |
37 | struct commit *c; | |
38 | expression E; | |
39 | @@ | |
40 | ( | |
41 | - c->generation = E; | |
42 | + commit_graph_data_at(c)->generation = E; | |
43 | | | |
44 | - c->graph_pos = E; | |
45 | + commit_graph_data_at(c)->graph_pos = E; | |
46 | | | |
47 | - c->generation | |
48 | + commit_graph_generation(c) | |
49 | | | |
50 | - c->graph_pos | |
51 | + commit_graph_position(c) | |
52 | ) |