]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/index-pack.c
index-pack: abstract away hash function constant
authorbrian m. carlson <sandals@crustytoothpaste.net>
Wed, 2 May 2018 00:25:46 +0000 (00:25 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 May 2018 04:59:51 +0000 (13:59 +0900)
commit5d9e19824573782a9d4461b49bcd78b5faa79963
treeb3d5a8ad68452b6ae10bd10a5d055e61b6c1aaba
parent6390fe20eba4afb1d70e05714c62be7908ad592a
index-pack: abstract away hash function constant

The code for reading certain pack v2 offsets had a hard-coded 5
representing the number of uint32_t words that we needed to skip over.
Specify this value in terms of a value from the_hash_algo.

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