]> git.ipfire.org Git - thirdparty/git.git/commit - cache-tree.c
cache-tree: use given repo's hash_algo at verify_one()
authorMatheus Tavares <matheus.bernardino@usp.br>
Thu, 30 Jan 2020 20:32:18 +0000 (17:32 -0300)
committerJunio C Hamano <gitster@pobox.com>
Fri, 31 Jan 2020 18:45:39 +0000 (10:45 -0800)
commita6519467304dacb356da8a6c471d735ee6e846a4
tree75ca7eaa7100ef9b68ee6ee1578bee0c647dd2a5
parenteb999b3295b22680a41c0d807a8b442407b1b19f
cache-tree: use given repo's hash_algo at verify_one()

verify_one() takes a struct repository argument but uses the_hash_algo
internally. Replace it with the provided repo's git_hash_algo, for
consistency. For now, this is mainly a cosmetic change, as all callers
of this function currently only pass the_repository to it.

Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache-tree.c