76d156766f
Both sha1_to_hex_r() and oid_to_hex_r() take two parameters, so use two expressions in the semantic patch for transforming calls of the former to the latter one. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
96 lines
1.1 KiB
Plaintext
96 lines
1.1 KiB
Plaintext
@@
|
|
expression E1;
|
|
@@
|
|
- is_null_sha1(E1.hash)
|
|
+ is_null_oid(&E1)
|
|
|
|
@@
|
|
expression E1;
|
|
@@
|
|
- is_null_sha1(E1->hash)
|
|
+ is_null_oid(E1)
|
|
|
|
@@
|
|
expression E1;
|
|
@@
|
|
- sha1_to_hex(E1.hash)
|
|
+ oid_to_hex(&E1)
|
|
|
|
@@
|
|
expression E1;
|
|
@@
|
|
- sha1_to_hex(E1->hash)
|
|
+ oid_to_hex(E1)
|
|
|
|
@@
|
|
expression E1, E2;
|
|
@@
|
|
- sha1_to_hex_r(E1, E2.hash)
|
|
+ oid_to_hex_r(E1, &E2)
|
|
|
|
@@
|
|
expression E1, E2;
|
|
@@
|
|
- sha1_to_hex_r(E1, E2->hash)
|
|
+ oid_to_hex_r(E1, E2)
|
|
|
|
@@
|
|
expression E1;
|
|
@@
|
|
- hashclr(E1.hash)
|
|
+ oidclr(&E1)
|
|
|
|
@@
|
|
expression E1;
|
|
@@
|
|
- hashclr(E1->hash)
|
|
+ oidclr(E1)
|
|
|
|
@@
|
|
expression E1, E2;
|
|
@@
|
|
- hashcmp(E1.hash, E2.hash)
|
|
+ oidcmp(&E1, &E2)
|
|
|
|
@@
|
|
expression E1, E2;
|
|
@@
|
|
- hashcmp(E1->hash, E2->hash)
|
|
+ oidcmp(E1, E2)
|
|
|
|
@@
|
|
expression E1, E2;
|
|
@@
|
|
- hashcmp(E1->hash, E2.hash)
|
|
+ oidcmp(E1, &E2)
|
|
|
|
@@
|
|
expression E1, E2;
|
|
@@
|
|
- hashcmp(E1.hash, E2->hash)
|
|
+ oidcmp(&E1, E2)
|
|
|
|
@@
|
|
expression E1, E2;
|
|
@@
|
|
- hashcpy(E1.hash, E2.hash)
|
|
+ oidcpy(&E1, &E2)
|
|
|
|
@@
|
|
expression E1, E2;
|
|
@@
|
|
- hashcpy(E1->hash, E2->hash)
|
|
+ oidcpy(E1, E2)
|
|
|
|
@@
|
|
expression E1, E2;
|
|
@@
|
|
- hashcpy(E1->hash, E2.hash)
|
|
+ oidcpy(E1, &E2)
|
|
|
|
@@
|
|
expression E1, E2;
|
|
@@
|
|
- hashcpy(E1.hash, E2->hash)
|
|
+ oidcpy(&E1, E2)
|