Start preparing for 2.10.1
[git.git] / contrib / coccinelle / object_id.cocci
blob8ccdbb5666cbc89cf85ce90f63d357b86c37bd30
1 @@
2 expression E1;
3 @@
4 - is_null_sha1(E1.hash)
5 + is_null_oid(&E1)
7 @@
8 expression E1;
9 @@
10 - is_null_sha1(E1->hash)
11 + is_null_oid(E1)
14 expression E1;
16 - sha1_to_hex(E1.hash)
17 + oid_to_hex(&E1)
20 expression E1;
22 - sha1_to_hex(E1->hash)
23 + oid_to_hex(E1)
26 expression E1;
28 - sha1_to_hex_r(E1.hash)
29 + oid_to_hex_r(&E1)
32 expression E1;
34 - sha1_to_hex_r(E1->hash)
35 + oid_to_hex_r(E1)
38 expression E1;
40 - hashclr(E1.hash)
41 + oidclr(&E1)
44 expression E1;
46 - hashclr(E1->hash)
47 + oidclr(E1)
50 expression E1, E2;
52 - hashcmp(E1.hash, E2.hash)
53 + oidcmp(&E1, &E2)
56 expression E1, E2;
58 - hashcmp(E1->hash, E2->hash)
59 + oidcmp(E1, E2)
62 expression E1, E2;
64 - hashcmp(E1->hash, E2.hash)
65 + oidcmp(E1, &E2)
68 expression E1, E2;
70 - hashcmp(E1.hash, E2->hash)
71 + oidcmp(&E1, E2)
74 expression E1, E2;
76 - hashcpy(E1.hash, E2.hash)
77 + oidcpy(&E1, &E2)
80 expression E1, E2;
82 - hashcpy(E1->hash, E2->hash)
83 + oidcpy(E1, E2)
86 expression E1, E2;
88 - hashcpy(E1->hash, E2.hash)
89 + oidcpy(E1, &E2)
92 expression E1, E2;
94 - hashcpy(E1.hash, E2->hash)
95 + oidcpy(&E1, E2)