]> git.ipfire.org Git - thirdparty/git.git/blobdiff - pack-objects.c
The sixth batch
[thirdparty/git.git] / pack-objects.c
index 5e5a3c62d9db8cf11b4c64c196ae0fb830fe5004..f2a433885ac80ec9cbadfd3e5e7553655237c924 100644 (file)
@@ -203,14 +203,14 @@ struct object_entry *packlist_alloc(struct packing_data *pdata,
 
 void oe_set_delta_ext(struct packing_data *pdata,
                      struct object_entry *delta,
-                     const unsigned char *sha1)
+                     const struct object_id *oid)
 {
        struct object_entry *base;
 
        ALLOC_GROW(pdata->ext_bases, pdata->nr_ext + 1, pdata->alloc_ext);
        base = &pdata->ext_bases[pdata->nr_ext++];
        memset(base, 0, sizeof(*base));
-       hashcpy(base->idx.oid.hash, sha1);
+       oidcpy(&base->idx.oid, oid);
 
        /* These flags mark that we are not part of the actual pack output. */
        base->preferred_base = 1;