blob ee1dc2923438c0741f571a639d2730b22f7403e7 622 bytes (raw)
name: contrib/coccinelle/commit.cocci # note: path name is non-authoritative(*)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| | @@
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
// These excluded functions must access c->maybe_tree direcly.
// Note that if c->maybe_tree is written somewhere outside of these
// functions, then the recommended transformation will be bogus with
// repo_get_commit_tree() on the LHS.
@@
identifier f !~ "^(repo_get_commit_tree|get_commit_tree_in_graph_one|load_tree_for_commit|set_commit_tree)$";
expression c;
@@
f(...) {<...
- c->maybe_tree
+ repo_get_commit_tree(specify_the_right_repo_here, c)
...>}
|
debug log:
solving ee1dc29234 ...
found ee1dc29234 in https://public-inbox.org/git/20190413101600.713-1-pclouds@gmail.com/
found c49aa558f0 in https://80x24.org/mirrors/git.git
preparing index
index prepared:
100644 c49aa558f0fe6b74b9d4d4a7779f0a9f32747388 contrib/coccinelle/commit.cocci
applying [1/1] https://public-inbox.org/git/20190413101600.713-1-pclouds@gmail.com/
diff --git a/contrib/coccinelle/commit.cocci b/contrib/coccinelle/commit.cocci
index c49aa558f0..ee1dc29234 100644
Checking patch contrib/coccinelle/commit.cocci...
Applied patch contrib/coccinelle/commit.cocci cleanly.
index at:
100644 ee1dc2923438c0741f571a639d2730b22f7403e7 contrib/coccinelle/commit.cocci
(*) Git path names are given by the tree(s) the blob belongs to.
Blobs themselves have no identifier aside from the hash of its contents.^
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).