]> git.ipfire.org Git - thirdparty/git.git/commit - sha1-name.c
sha1_name: convert struct disambiguate_state to object_id
authorbrian m. carlson <sandals@crustytoothpaste.net>
Sun, 26 Mar 2017 16:01:33 +0000 (16:01 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Mar 2017 16:59:33 +0000 (09:59 -0700)
commitd2ee11859ce6c0edecb94a7e3e9600ab69823b06
tree765d0bc5545da15565da5fdedd8c17eba3ca9452
parent57836f10ad47c2b2c3b94502024758871841091f
sha1_name: convert struct disambiguate_state to object_id

Convert struct disambiguate_state to use struct object_id by changing
the structure definition and applying the following semantic patch:

@@
struct disambiguate_state E1;
@@
- E1.bin_pfx
+ E1.bin_pfx.hash

@@
struct disambiguate_state *E1;
@@
- E1->bin_pfx
+ E1->bin_pfx.hash

@@
struct disambiguate_state E1;
@@
- E1.candidate
+ E1.candidate.hash

@@
struct disambiguate_state *E1;
@@
- E1->candidate
+ E1->candidate.hash

This conversion is needed so we can convert disambiguate_hint_fn later.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_name.c