]> git.ipfire.org Git - thirdparty/git.git/commit
cache: update object ID functions for the_hash_algo
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 16 Jul 2018 01:27:53 +0000 (01:27 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Jul 2018 21:27:38 +0000 (14:27 -0700)
commit509f6f62a4b0dfd1c06dc2120ad06b9d50a1b64a
treedba66de4dbd8b10a203e29550cbf525c9d67a59a
parente3331758f12da22f4103eec7efe1b5304a9be5e9
cache: update object ID functions for the_hash_algo

Most of our code has been converted to use struct object_id for object
IDs.  However, there are some places that still have not, and there are
a variety of places that compare equivalently sized hashes that are not
object IDs.  All of these hashes are artifacts of the internal hash
algorithm in use, and when we switch to NewHash for object storage, all
of these uses will also switch.

Update the hashcpy, hashclr, and hashcmp functions to use the_hash_algo,
since they are used in a variety of places to copy and manipulate
buffers that need to move data into or out of struct object_id.  This
has the effect of making the corresponding oid* functions use
the_hash_algo as well.

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