]> git.ipfire.org Git - thirdparty/git.git/commit
show-index: switch hard-coded constants to the_hash_algo
authorbrian m. carlson <sandals@crustytoothpaste.net>
Sun, 18 Aug 2019 20:04:09 +0000 (20:04 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 19 Aug 2019 22:04:58 +0000 (15:04 -0700)
commit7962e046ff2bfdeab1dad5c969dbd2b9209efe2f
tree62258342f20f86ccd17a46d1929d309a0f2ce4b6
parentfee49308a1a6a3270a52b31275562f3e92f27d0a
show-index: switch hard-coded constants to the_hash_algo

show-index uses a variety of hard-coded constants to enumerate the
values in pack indices.  Switch these hard-coded constants to use
the_hash_algo or GIT_MAX_RAWSZ, as appropriate, and convert one instance
of an unsigned char array to struct object_id.

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