projects
/
git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
treewide: replace maybe_tree with accessor methods
[git]
/
contrib
/
coccinelle
/
commit.cocci
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
@@
14
expression c;
15
@@
16
- c->maybe_tree
17
+ get_commit_tree(c)
18
19
@@
20
expression c;
21
expression s;
22
@@
23
- get_commit_tree(c) = s
24
+ c->maybe_tree = s
25
26
@@
27
expression c;
28
@@
29
- return get_commit_tree(c);
30
+ return c->maybe_tree;