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

commit.cocci « coccinelle « contrib - git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ac38525941fef973ba588c8262a1ba048797042b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@@
expression c;
@@
- &c->maybe_tree->object.oid
+ get_commit_tree_oid(c)

@@
expression c;
@@
- c->maybe_tree->object.oid.hash
+ get_commit_tree_oid(c)->hash

@@
expression c;
@@
- c->maybe_tree
+ get_commit_tree(c)

@@
expression c;
expression s;
@@
- get_commit_tree(c) = s
+ c->maybe_tree = s

@@
expression c;
@@
- return get_commit_tree(c);
+ return c->maybe_tree;