builtin/cat-file: convert struct expand_data to use struct object_id
commitcd4f77beb7c7dcb996e08f1eae566802d4056a6c
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 5 Sep 2016 20:07:56 +0000 (5 20:07 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 Sep 2016 19:59:42 +0000 (7 12:59 -0700)
treed4cac828c7c97a87ed0950dbb6706415d99f83ba
parentd801627b0c66138eab33a1cf8cd61d056ee946f1
builtin/cat-file: convert struct expand_data to use struct object_id

Convert struct cache_entry to use struct object_id by applying the
following semantic patch and the object_id transforms from contrib,
plus the actual change to the struct:

@@
struct expand_data E1;
@@
- E1.sha1
+ E1.oid.hash

@@
struct expand_data *E1;
@@
- E1->sha1
+ E1->oid.hash

@@
struct expand_data E1;
@@
- E1.delta_base_sha1
+ E1.delta_base_oid.hash

@@
struct expand_data *E1;
@@
- E1->delta_base_sha1
+ E1->delta_base_oid.hash

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