summaryrefslogtreecommitdiff
path: root/unpack-trees.c
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2018-05-02 00:25:44 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-02 04:59:50 (GMT)
commit75691ea3458a9eb9e80f6bdc2cc7c9321a9ac4ab (patch)
tree8046d90fc5f5c61bd06f27729f6a46b860f9c3db /unpack-trees.c
parent2182abd94bf69a8daba18e71efae3e9f02a6c465 (diff)
downloadgit-75691ea3458a9eb9e80f6bdc2cc7c9321a9ac4ab.zip
git-75691ea3458a9eb9e80f6bdc2cc7c9321a9ac4ab.tar.gz
git-75691ea3458a9eb9e80f6bdc2cc7c9321a9ac4ab.tar.bz2
Update struct index_state to use struct object_id
Adjust struct index_state to use struct object_id instead of unsigned char [20]. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'unpack-trees.c')
-rw-r--r--unpack-trees.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unpack-trees.c b/unpack-trees.c
index e737450..038ef7b 100644
--- a/unpack-trees.c
+++ b/unpack-trees.c
@@ -1287,7 +1287,7 @@ int unpack_trees(unsigned len, struct tree_desc *t, struct unpack_trees_options
o->result.split_index = o->src_index->split_index;
if (o->result.split_index)
o->result.split_index->refcount++;
- hashcpy(o->result.sha1, o->src_index->sha1);
+ oidcpy(&o->result.oid, &o->src_index->oid);
o->merge_size = len;
mark_all_ce_unused(o->src_index);