]> git.ipfire.org Git - thirdparty/git.git/commit - entry.c
convert: convert to struct object_id
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 12 Mar 2018 02:27:56 +0000 (02:27 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Mar 2018 16:23:50 +0000 (09:23 -0700)
commit1a750441a7360b29fff7a414649ece1d35acaca6
tree6ff6fbf2c43af12082c849b9d3b6c9bb89717724
parent1af64f73a9113b189ce4cc3e422ec927e9b32084
convert: convert to struct object_id

Convert convert.c to struct object_id.  Add a use of the_hash_algo to
replace hard-coded constants and change a strbuf_add to a strbuf_addstr
to avoid another hard-coded constant.

Note that a strict conversion using the hexsz constant would cause
problems in the future if the internal and user-visible hash algorithms
differed, as anticipated by the hash function transition plan.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
convert.c
convert.h
entry.c