git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
blob f5bc639981fd7905d20a94f6fb9a4e6a5098a785 498 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
+ repo_get_commit_tree(the_repository, c)
  ...>}

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

debug log:

solving f5bc639981 ...
found f5bc639981 in https://public-inbox.org/git/20190403113457.20399-11-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/20190403113457.20399-11-pclouds@gmail.com/
diff --git a/contrib/coccinelle/commit.cocci b/contrib/coccinelle/commit.cocci
index c49aa558f0..f5bc639981 100644

Checking patch contrib/coccinelle/commit.cocci...
Applied patch contrib/coccinelle/commit.cocci cleanly.

index at:
100644 f5bc639981fd7905d20a94f6fb9a4e6a5098a785	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).