]> Kevux Git Server - rit/commit
commit-graph: don't store file hashes as struct object_id
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 26 Apr 2021 01:02:58 +0000 (01:02 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 27 Apr 2021 07:31:39 +0000 (16:31 +0900)
commit72871b132c7c81d23aa9d4467013651c1c51bbc4
treeac2f5583a4f8cacf9ff2877ca0e930f598cfb8ef
parentdd15f4f4570f9fed3012132adf9bf95cd921442b
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>
commit-graph.c