]> git.ipfire.org Git - thirdparty/git.git/commit
commit-graph: convert to using the_hash_algo
authorbrian m. carlson <sandals@crustytoothpaste.net>
Wed, 14 Nov 2018 04:09:35 +0000 (04:09 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Nov 2018 07:54:53 +0000 (16:54 +0900)
commitc166599862d10a273f61b834559eaa567c3dbfd9
tree3a58f34a95e65bab38cccfb739d6f4d22947ffac
parent37649b7f809f14b78d178c32e4d8333243f1f74e
commit-graph: convert to using the_hash_algo

Instead of using hard-coded constants for object sizes, use
the_hash_algo to look them up.  In addition, use a function call to look
up the object ID version and produce the correct value.  For now, we use
version 1, which means to use the default algorithm used in the rest of
the repository.

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