diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2021-04-26 01:02:57 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-04-27 16:31:39 +0900 |
commit | dd15f4f4570f9fed3012132adf9bf95cd921442b (patch) | |
tree | 75291c33172802bd3456183fd9a3dd5e547eb381 /builtin/revert.c | |
parent | hash: provide per-algorithm null OIDs (diff) | |
download | tgif-dd15f4f4570f9fed3012132adf9bf95cd921442b.tar.xz |
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 <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/revert.c')
0 files changed, 0 insertions, 0 deletions