]> git.99rst.org Git - git.git/commit
builtin/show-index: set the algorithm for object IDs
authorbrian m. carlson <redacted>
Mon, 26 Apr 2021 01:02:57 +0000 (01:02 +0000)
committerJunio C Hamano <redacted>
Tue, 27 Apr 2021 07:31:39 +0000 (16:31 +0900)
commitdd15f4f4570f9fed3012132adf9bf95cd921442b
tree75291c33172802bd3456183fd9a3dd5e547eb381
parent14228447c9ce664a4e9c31ba10344ec5e4ea4ba5
builtin/show-index: set the algorithm for object IDs

In most cases, when we load the hash of an object into a struct
object_id, we load it using one of the oid* or *_oid_hex functions.
However, for git show-index, we read it in directly using fread.  As a
consequence, set the algorithm correctly so the objects can be used
correctly both now and in the future.

Signed-off-by: brian m. carlson <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/show-index.c
git clone https://git.99rst.org/PROJECT