]> git.ipfire.org Git - thirdparty/git.git/commit
midx: switch to using the_hash_algo
authorbrian m. carlson <sandals@crustytoothpaste.net>
Sun, 18 Aug 2019 20:04:27 +0000 (20:04 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 19 Aug 2019 22:05:00 +0000 (15:05 -0700)
commitaaa95dfa051fc517dde0fa31187c744094cd17c5
treea4bbe05b9268891aa7326348fae701c147e2138f
parentbe8e172e9f4f62c9e4cdbecb5cd667775f38d4f1
midx: switch to using the_hash_algo

Instead of hard-coding the hash size, use the_hash_algo to look up the
hash size at runtime.  Remove the #define constant which was used to
hold the hash length, since writing the expression with the_hash_algo
provide enough documentary value on its own.

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