refs: convert read_raw_ref backends to struct object_id
commit99afe91a6c3a37b7bb32c824f19b1b51712fe6f3
authorbrian m. carlson <sandals@crustytoothpaste.net>
Sun, 15 Oct 2017 22:07:11 +0000 (15 22:07 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Oct 2017 02:05:52 +0000 (16 11:05 +0900)
tree87613256629ddd8f96d6dfab7089330a04f0353a
parentac2ed0d7d51e5c0b402797ecf01f38e9bfc82e0e
refs: convert read_raw_ref backends to struct object_id

Convert the unsigned char * parameter to struct object_id * for
files_read_raw_ref and packed_read_raw_ref.  Update the documentation.
Switch from using get_sha1_hex and a hard-coded 40 to using
parse_oid_hex.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c
refs/files-backend.c
refs/packed-backend.c
refs/refs-internal.h