summaryrefslogtreecommitdiff
path: root/list-objects.c
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2019-01-15 00:39:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-01-15 17:57:41 (GMT)
commitf55ac4311ad173529cbac7a619d422674a4252ad (patch)
treeb6b89dfa9b37e2f7466b7286294d14fc1140308c /list-objects.c
parent36775ab524a1d180aaaac089e25b5aeb87793a17 (diff)
downloadgit-f55ac4311ad173529cbac7a619d422674a4252ad.zip
git-f55ac4311ad173529cbac7a619d422674a4252ad.tar.gz
git-f55ac4311ad173529cbac7a619d422674a4252ad.tar.bz2
match-trees: use hashcpy to splice trees
When we splice trees together, we operate in place on the tree buffer. If we're using SHA-1 for the hash algorithm, we may not have a full GIT_MAX_RAWSZ (32) bytes to copy. Consequently, it doesn't logically make sense for us to use a struct object_id to represent this type, since it isn't a complete object. Represent this value as a unsigned char pointer instead and copy it when necessary. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'list-objects.c')
0 files changed, 0 insertions, 0 deletions