blob 55679cbbed86dbb9cfac0bc8abb8f0228bbf3f30 477 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
25
26
27
28
| | @@
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.
@@
identifier f !~ "^(repo_get_commit_tree|get_commit_tree_in_graph_one|load_tree_for_commit)$";
expression c;
@@
f(...) {<...
- c->maybe_tree
+ get_commit_tree(c)
...>}
@@
expression c;
expression s;
@@
- get_commit_tree(c) = s
+ c->maybe_tree = s
|
debug log:
solving 55679cbbed ...
found 55679cbbed in https://public-inbox.org/git/20190402153953.GL32732@szeder.dev/
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/20190402153953.GL32732@szeder.dev/
diff --git a/contrib/coccinelle/commit.cocci b/contrib/coccinelle/commit.cocci
index c49aa558f0..55679cbbed 100644
Checking patch contrib/coccinelle/commit.cocci...
Applied patch contrib/coccinelle/commit.cocci cleanly.
index at:
100644 55679cbbed86dbb9cfac0bc8abb8f0228bbf3f30 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).