diff: specify abbreviation size in terms of the_hash_algo
commitde1d81d5af635aaa8269d54ee06d99c2b0b75c62
authorbrian m. carlson <sandals@crustytoothpaste.net>
Wed, 2 May 2018 00:25:52 +0000 (2 00:25 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 May 2018 04:59:51 +0000 (2 13:59 +0900)
tree730edc2094943ef8fccdc79a3ee4255de0ce389b
parent55dc227d16cb0ca79ca25e89433d85bd5f806c22
diff: specify abbreviation size in terms of the_hash_algo

Instead of using hard-coded 40 constants, refer to the_hash_algo for the
current hash size.

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