builtin/name-rev: convert to struct object_id
commit511dca80cce868237b2b64f909ed83863fcf5455
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 1 May 2017 02:28:57 +0000 (1 02:28 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 May 2017 01:46:41 +0000 (2 10:46 +0900)
tree3fe39e6217a2defa06ac94b9cfad4d7c50519d4c
parente0a92804044a4025fc8abbfa1d92fd16f6f2e1f4
builtin/name-rev: convert to struct object_id

Convert all the uses of unsigned char [20] to struct object_id.  Also,
convert some hard-coded integers into constants.

name_rev_line accepts a wide variety of free-form input and only
interprets 40-character hex values, passing through everything else.
Consequently, it is not a good candidate for parse_oid_hex, which is
much stricter.

This change is a prerequisite for converting parse_object.

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