From: brian m. carlson Date: Sat, 6 May 2017 22:09:56 +0000 (+0000) Subject: fast-import: convert to struct object_id X-Git-Tag: v2.14.0-rc0~166^2~42 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/912c13d58faf355589a3f67fd55b2015561e0184?ds=sidebyside;hp=912c13d58faf355589a3f67fd55b2015561e0184 fast-import: convert to struct object_id Convert the remaining parts of fast-import.c to use struct object_id. Convert several instances of get_sha1_hex to parse_oid_hex to avoid needing to specify constants. Convert other hardcoded values to named constants. Finally, use the is_empty_tree_oid function instead of a direct comparison against a fixed string. Note that the odd computation with GIT_MAX_HEXSZ is due to the insertion of a slash between every two hex digits in the path, plus one for the terminating NUL. Signed-off-by: brian m. carlson Signed-off-by: Junio C Hamano ---