cocci: avoid self-references in object_id transformations
commitc2bb0c1d1e957ec1418fa6013c8c1e3e0ef38afa
authorRené Scharfe <l.s.r@web.de>
Tue, 1 Nov 2016 08:49:12 +0000 (1 09:49 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 Nov 2016 17:58:39 +0000 (1 10:58 -0700)
treef6201ed5c489f861fed444efda548a6cb6d6daa9
parentac84098b7e32406a982ac01cc76a663d5605224b
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>
contrib/coccinelle/object_id.cocci