]> Kevux Git Server - rit/commit
object-file: handle compat objects in check_object_signature
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 2 Oct 2023 02:40:29 +0000 (21:40 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Oct 2023 21:57:40 +0000 (14:57 -0700)
commit8d691757b8fcbe9b7898a5d1dcb37b198a8c60e1
tree296397850f8359824b68ee06873fcad15d6110f9
parentefed687edcaa272601e0f4e192db368972daa7ac
object-file: handle compat objects in check_object_signature

Update check_object_signature to find the hash algorithm the exising
signature uses, and to use the same hash algorithm when recomputing it
to check the signature is valid.

This will be useful when teaching git ls-tree to display objects
encoded with the compat hash algorithm.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object-file.c