summaryrefslogtreecommitdiff
path: root/send-pack.c
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2017-03-26 16:01:37 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-03-28 16:59:34 (GMT)
commitee3051bd2307cdc0145aa9ed9dcacb8acfc08c40 (patch)
tree34c83024d11dbd1de894fc8d1e92a9714b30c463 /send-pack.c
parentf9b11147e00f066d24d9eaf9783beaa173fdd5e0 (diff)
downloadgit-ee3051bd2307cdc0145aa9ed9dcacb8acfc08c40.zip
git-ee3051bd2307cdc0145aa9ed9dcacb8acfc08c40.tar.gz
git-ee3051bd2307cdc0145aa9ed9dcacb8acfc08c40.tar.bz2
sha1-array: convert internal storage for struct sha1_array to object_id
Make the internal storage for struct sha1_array use an array of struct object_id internally. Update the users of this struct which inspect its internals. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'send-pack.c')
-rw-r--r--send-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/send-pack.c b/send-pack.c
index d2d2a49..b304039 100644
--- a/send-pack.c
+++ b/send-pack.c
@@ -98,7 +98,7 @@ static int pack_objects(int fd, struct ref *refs, struct sha1_array *extra, stru
*/
po_in = xfdopen(po.in, "w");
for (i = 0; i < extra->nr; i++)
- feed_object(extra->sha1[i], po_in, 1);
+ feed_object(extra->oid[i].hash, po_in, 1);
while (refs) {
if (!is_null_oid(&refs->old_oid))