summaryrefslogtreecommitdiff
path: root/t/helper/test-hash.c
diff options
context:
space:
mode:
authorLibravatar brian m. carlson <sandals@crustytoothpaste.net>2021-04-26 01:02:58 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-04-27 16:31:39 +0900
commit72871b132c7c81d23aa9d4467013651c1c51bbc4 (patch)
treeac2f5583a4f8cacf9ff2877ca0e930f598cfb8ef /t/helper/test-hash.c
parentbuiltin/show-index: set the algorithm for object IDs (diff)
downloadtgif-72871b132c7c81d23aa9d4467013651c1c51bbc4.tar.xz
commit-graph: don't store file hashes as struct object_id
The idea behind struct object_id is that it is supposed to represent the identifier of a standard Git object or a special pseudo-object like the all-zeros object ID. In this case, we have file hashes, which, while similar, are distinct from the identifiers of objects. Switch these code paths to use an unsigned char array. This is both more logically consistent and it means that we need not set the algorithm identifier for the struct object_id. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-hash.c')
0 files changed, 0 insertions, 0 deletions