]> git.ipfire.org Git - thirdparty/git.git/commit - hash.h
cache: add a function to read an OID of a specific algorithm
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 2 Oct 2023 02:40:17 +0000 (21:40 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Oct 2023 21:57:39 +0000 (14:57 -0700)
commit095261a18d91cf47e8e8ef3b55f5e88e52ffc85f
treee911cf01112411d9fb900e99e2c316909850a730
parent867386d0c8aa0ea9edb683585b69b20f96c4f776
cache: add a function to read an OID of a specific algorithm

Currently, we always read a object ID of the current algorithm with
oidread.  However, once we start converting objects, we'll need to
consider what happens when we want to read an object ID of a specific
algorithm, such as the compatibility algorithm.  To make this easier,
let's define oidread_algop, which specifies which algorithm we should
use for our object ID, and define oidread in terms of it.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
hash.h