sha1-lookup: switch hard-coded constants to the_hash_algo
authorbrian m. carlson <sandals@crustytoothpaste.net>
Sun, 18 Aug 2019 20:04:14 +0000 (20:04 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 19 Aug 2019 22:04:58 +0000 (15:04 -0700)
commite84f3572bd9160f281629bb2a098b35ea87c10e1
treeac03ddcc318e34be8e8efa0a6ce16dc7b33001c7
parentfe9fec45f68e0d9850bf13da57b3e7a99fc33444
sha1-lookup: switch hard-coded constants to the_hash_algo

Switch a hard-coded 18 to be a reference to the_hash_algo.  Rename the
sha1 parameter to be called hash instead.

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