2016-06-25 01:09:20 +02:00
|
|
|
@@
|
|
|
|
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)
|
|
|
|
|
|
|
|
@@
|
cocci: avoid self-references in object_id transformations
The object_id functions oid_to_hex, oid_to_hex_r, oidclr, oidcmp, and
oidcpy are defined as wrappers of their legacy counterparts sha1_to_hex,
sha1_to_hex_r, hashclr, hashcmp, and hashcpy, respectively. Make sure
that the Coccinelle transformations for converting legacy function calls
are not applied to these wrappers themselves, which would result in
tautological declarations.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2016-11-01 09:49:12 +01:00
|
|
|
identifier f != oid_to_hex;
|
2016-06-25 01:09:20 +02:00
|
|
|
expression E1;
|
|
|
|
@@
|
cocci: avoid self-references in object_id transformations
The object_id functions oid_to_hex, oid_to_hex_r, oidclr, oidcmp, and
oidcpy are defined as wrappers of their legacy counterparts sha1_to_hex,
sha1_to_hex_r, hashclr, hashcmp, and hashcpy, respectively. Make sure
that the Coccinelle transformations for converting legacy function calls
are not applied to these wrappers themselves, which would result in
tautological declarations.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2016-11-01 09:49:12 +01:00
|
|
|
f(...) {...
|
2016-06-25 01:09:20 +02:00
|
|
|
- sha1_to_hex(E1->hash)
|
|
|
|
+ oid_to_hex(E1)
|
cocci: avoid self-references in object_id transformations
The object_id functions oid_to_hex, oid_to_hex_r, oidclr, oidcmp, and
oidcpy are defined as wrappers of their legacy counterparts sha1_to_hex,
sha1_to_hex_r, hashclr, hashcmp, and hashcpy, respectively. Make sure
that the Coccinelle transformations for converting legacy function calls
are not applied to these wrappers themselves, which would result in
tautological declarations.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2016-11-01 09:49:12 +01:00
|
|
|
...}
|
2016-06-25 01:09:20 +02:00
|
|
|
|
|
|
|
@@
|
2016-09-15 20:30:52 +02:00
|
|
|
expression E1, E2;
|
2016-06-25 01:09:20 +02:00
|
|
|
@@
|
2016-09-15 20:30:52 +02:00
|
|
|
- sha1_to_hex_r(E1, E2.hash)
|
|
|
|
+ oid_to_hex_r(E1, &E2)
|
2016-06-25 01:09:20 +02:00
|
|
|
|
|
|
|
@@
|
cocci: avoid self-references in object_id transformations
The object_id functions oid_to_hex, oid_to_hex_r, oidclr, oidcmp, and
oidcpy are defined as wrappers of their legacy counterparts sha1_to_hex,
sha1_to_hex_r, hashclr, hashcmp, and hashcpy, respectively. Make sure
that the Coccinelle transformations for converting legacy function calls
are not applied to these wrappers themselves, which would result in
tautological declarations.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2016-11-01 09:49:12 +01:00
|
|
|
identifier f != oid_to_hex_r;
|
2016-09-15 20:30:52 +02:00
|
|
|
expression E1, E2;
|
2016-06-25 01:09:20 +02:00
|
|
|
@@
|
cocci: avoid self-references in object_id transformations
The object_id functions oid_to_hex, oid_to_hex_r, oidclr, oidcmp, and
oidcpy are defined as wrappers of their legacy counterparts sha1_to_hex,
sha1_to_hex_r, hashclr, hashcmp, and hashcpy, respectively. Make sure
that the Coccinelle transformations for converting legacy function calls
are not applied to these wrappers themselves, which would result in
tautological declarations.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2016-11-01 09:49:12 +01:00
|
|
|
f(...) {...
|
2016-09-15 20:30:52 +02:00
|
|
|
- sha1_to_hex_r(E1, E2->hash)
|
|
|
|
+ oid_to_hex_r(E1, E2)
|
cocci: avoid self-references in object_id transformations
The object_id functions oid_to_hex, oid_to_hex_r, oidclr, oidcmp, and
oidcpy are defined as wrappers of their legacy counterparts sha1_to_hex,
sha1_to_hex_r, hashclr, hashcmp, and hashcpy, respectively. Make sure
that the Coccinelle transformations for converting legacy function calls
are not applied to these wrappers themselves, which would result in
tautological declarations.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2016-11-01 09:49:12 +01:00
|
|
|
...}
|
2016-06-25 01:09:20 +02:00
|
|
|
|
|
|
|
@@
|
|
|
|
expression E1;
|
|
|
|
@@
|
|
|
|
- hashclr(E1.hash)
|
|
|
|
+ oidclr(&E1)
|
|
|
|
|
|
|
|
@@
|
cocci: avoid self-references in object_id transformations
The object_id functions oid_to_hex, oid_to_hex_r, oidclr, oidcmp, and
oidcpy are defined as wrappers of their legacy counterparts sha1_to_hex,
sha1_to_hex_r, hashclr, hashcmp, and hashcpy, respectively. Make sure
that the Coccinelle transformations for converting legacy function calls
are not applied to these wrappers themselves, which would result in
tautological declarations.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2016-11-01 09:49:12 +01:00
|
|
|
identifier f != oidclr;
|
2016-06-25 01:09:20 +02:00
|
|
|
expression E1;
|
|
|
|
@@
|
cocci: avoid self-references in object_id transformations
The object_id functions oid_to_hex, oid_to_hex_r, oidclr, oidcmp, and
oidcpy are defined as wrappers of their legacy counterparts sha1_to_hex,
sha1_to_hex_r, hashclr, hashcmp, and hashcpy, respectively. Make sure
that the Coccinelle transformations for converting legacy function calls
are not applied to these wrappers themselves, which would result in
tautological declarations.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2016-11-01 09:49:12 +01:00
|
|
|
f(...) {...
|
2016-06-25 01:09:20 +02:00
|
|
|
- hashclr(E1->hash)
|
|
|
|
+ oidclr(E1)
|
cocci: avoid self-references in object_id transformations
The object_id functions oid_to_hex, oid_to_hex_r, oidclr, oidcmp, and
oidcpy are defined as wrappers of their legacy counterparts sha1_to_hex,
sha1_to_hex_r, hashclr, hashcmp, and hashcpy, respectively. Make sure
that the Coccinelle transformations for converting legacy function calls
are not applied to these wrappers themselves, which would result in
tautological declarations.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2016-11-01 09:49:12 +01:00
|
|
|
...}
|
2016-06-25 01:09:20 +02:00
|
|
|
|
|
|
|
@@
|
|
|
|
expression E1, E2;
|
|
|
|
@@
|
|
|
|
- hashcmp(E1.hash, E2.hash)
|
|
|
|
+ oidcmp(&E1, &E2)
|
|
|
|
|
|
|
|
@@
|
cocci: avoid self-references in object_id transformations
The object_id functions oid_to_hex, oid_to_hex_r, oidclr, oidcmp, and
oidcpy are defined as wrappers of their legacy counterparts sha1_to_hex,
sha1_to_hex_r, hashclr, hashcmp, and hashcpy, respectively. Make sure
that the Coccinelle transformations for converting legacy function calls
are not applied to these wrappers themselves, which would result in
tautological declarations.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2016-11-01 09:49:12 +01:00
|
|
|
identifier f != oidcmp;
|
2016-06-25 01:09:20 +02:00
|
|
|
expression E1, E2;
|
|
|
|
@@
|
cocci: avoid self-references in object_id transformations
The object_id functions oid_to_hex, oid_to_hex_r, oidclr, oidcmp, and
oidcpy are defined as wrappers of their legacy counterparts sha1_to_hex,
sha1_to_hex_r, hashclr, hashcmp, and hashcpy, respectively. Make sure
that the Coccinelle transformations for converting legacy function calls
are not applied to these wrappers themselves, which would result in
tautological declarations.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2016-11-01 09:49:12 +01:00
|
|
|
f(...) {...
|
2016-06-25 01:09:20 +02:00
|
|
|
- hashcmp(E1->hash, E2->hash)
|
|
|
|
+ oidcmp(E1, E2)
|
cocci: avoid self-references in object_id transformations
The object_id functions oid_to_hex, oid_to_hex_r, oidclr, oidcmp, and
oidcpy are defined as wrappers of their legacy counterparts sha1_to_hex,
sha1_to_hex_r, hashclr, hashcmp, and hashcpy, respectively. Make sure
that the Coccinelle transformations for converting legacy function calls
are not applied to these wrappers themselves, which would result in
tautological declarations.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2016-11-01 09:49:12 +01:00
|
|
|
...}
|
2016-06-25 01:09:20 +02:00
|
|
|
|
|
|
|
@@
|
|
|
|
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)
|
|
|
|
|
|
|
|
@@
|
cocci: avoid self-references in object_id transformations
The object_id functions oid_to_hex, oid_to_hex_r, oidclr, oidcmp, and
oidcpy are defined as wrappers of their legacy counterparts sha1_to_hex,
sha1_to_hex_r, hashclr, hashcmp, and hashcpy, respectively. Make sure
that the Coccinelle transformations for converting legacy function calls
are not applied to these wrappers themselves, which would result in
tautological declarations.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2016-11-01 09:49:12 +01:00
|
|
|
identifier f != oidcpy;
|
2016-06-25 01:09:20 +02:00
|
|
|
expression E1, E2;
|
|
|
|
@@
|
cocci: avoid self-references in object_id transformations
The object_id functions oid_to_hex, oid_to_hex_r, oidclr, oidcmp, and
oidcpy are defined as wrappers of their legacy counterparts sha1_to_hex,
sha1_to_hex_r, hashclr, hashcmp, and hashcpy, respectively. Make sure
that the Coccinelle transformations for converting legacy function calls
are not applied to these wrappers themselves, which would result in
tautological declarations.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2016-11-01 09:49:12 +01:00
|
|
|
f(...) {...
|
2016-06-25 01:09:20 +02:00
|
|
|
- hashcpy(E1->hash, E2->hash)
|
|
|
|
+ oidcpy(E1, E2)
|
cocci: avoid self-references in object_id transformations
The object_id functions oid_to_hex, oid_to_hex_r, oidclr, oidcmp, and
oidcpy are defined as wrappers of their legacy counterparts sha1_to_hex,
sha1_to_hex_r, hashclr, hashcmp, and hashcpy, respectively. Make sure
that the Coccinelle transformations for converting legacy function calls
are not applied to these wrappers themselves, which would result in
tautological declarations.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2016-11-01 09:49:12 +01:00
|
|
|
...}
|
2016-06-25 01:09:20 +02:00
|
|
|
|
|
|
|
@@
|
|
|
|
expression E1, E2;
|
|
|
|
@@
|
|
|
|
- hashcpy(E1->hash, E2.hash)
|
|
|
|
+ oidcpy(E1, &E2)
|
|
|
|
|
|
|
|
@@
|
|
|
|
expression E1, E2;
|
|
|
|
@@
|
|
|
|
- hashcpy(E1.hash, E2->hash)
|
|
|
|
+ oidcpy(&E1, E2)
|