diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2021-04-26 01:02:59 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-04-27 16:31:39 +0900 |
commit | 71b7672b674bc9a44fb41428804be428c2981046 (patch) | |
tree | 71f63e2870fb81aecf44477be42ce3fcca6499c2 /ls-refs.h | |
parent | commit-graph: don't store file hashes as struct object_id (diff) | |
download | tgif-71b7672b674bc9a44fb41428804be428c2981046.tar.xz |
builtin/pack-objects: avoid using struct object_id for pack hash
We use struct object_id for the names of objects. It isn't intended to
be used for other hash values that don't name objects such as the pack
hash.
Because struct object_id will soon need to have its algorithm member
set, using it in this code path would mean that we didn't set that
member, only the hash member, which would result in a crash. For both
of these reasons, switch to using an unsigned char array of size
GIT_MAX_RAWSZ.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ls-refs.h')
0 files changed, 0 insertions, 0 deletions