builtin/update-index: simplify parsing of cacheinfo
commitfe04ccf7ca124d5ba980090868b173d873104f16
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 16 Jul 2018 01:28:01 +0000 (16 01:28 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Jul 2018 21:27:39 +0000 (16 14:27 -0700)
tree6276c120d3aa91b4a0efa5679fb1d9b7c61a8920
parent1928c9449e600e83de122b3fde7bb0664eee3fa5
builtin/update-index: simplify parsing of cacheinfo

Switch from using get_oid_hex to parse_oid_hex to simplify pointer
operations and avoid the need for a hash-related constant.

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