]> git.ipfire.org Git - thirdparty/git.git/commit
commit-graph: rewrite to use checksum_valid()
authorTaylor Blau <me@ttaylorr.com>
Wed, 23 Jun 2021 18:39:09 +0000 (14:39 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 29 Jun 2021 03:36:17 +0000 (20:36 -0700)
commit15316a4732eeb0dab27ba406cb80e8704cb9b46d
tree109d13e62b616781dd7147f4a401f214bbe3afcc
parentf9221e2cf5049805d9151b3db6a5eef07b1cc92e
commit-graph: rewrite to use checksum_valid()

Rewrite an existing caller in `git commit-graph verify` to take
advantage of checksum_valid().

Note that the replacement isn't a verbatim cut-and-paste, since the new
function avoids using hashfile at all and instead talks to the_hash_algo
directly, but it is functionally equivalent.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit-graph.c