tree-walk: avoid hard-coded 20 constant
commite84bc23cb69209c771abd4fe098773340a850c48
authorbrian m. carlson <sandals@crustytoothpaste.net>
Wed, 2 May 2018 00:25:39 +0000 (2 00:25 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 May 2018 04:59:50 +0000 (2 13:59 +0900)
tree42179f58f8a40a9bf7247fba4c740944971d6bf3
parent00de60633228f11a2941c25fc7738f8028756cb9
tree-walk: avoid hard-coded 20 constant

Use the_hash_algo to look up the length of our current hash instead of
hard-coding the value 20.

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