increase buffer sizes for blob diffing
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
diff --git a/lib/diff.c b/lib/diff.c
index b684c9d..8d0f4cb 100644
--- a/lib/diff.c
+++ b/lib/diff.c
@@ -160,7 +160,7 @@ diff_added_blob(struct got_object_id *id, struct got_repository *repo)
err = got_object_open(&obj, repo, id);
if (err)
return err;
- err = got_object_blob_open(&blob, repo, obj, 512);
+ err = got_object_blob_open(&blob, repo, obj, 8192);
if (err != NULL)
return err;
@@ -195,13 +195,13 @@ diff_modified_blob(struct got_object_id *id1, struct got_object_id *id2,
goto done;
}
- err = got_object_blob_open(&blob1, repo, obj1, 512);
+ err = got_object_blob_open(&blob1, repo, obj1, 8192);
if (err != NULL) {
err = got_error(GOT_ERR_FILE_OPEN);
goto done;
}
- err = got_object_blob_open(&blob2, repo, obj2, 512);
+ err = got_object_blob_open(&blob2, repo, obj2, 8192);
if (err != NULL) {
err = got_error(GOT_ERR_FILE_OPEN);
goto done;
@@ -227,7 +227,7 @@ diff_deleted_blob(struct got_object_id *id, struct got_repository *repo)
err = got_object_open(&obj, repo, id);
if (err)
return err;
- err = got_object_blob_open(&blob, repo, obj, 512);
+ err = got_object_blob_open(&blob, repo, obj, 8192);
if (err != NULL)
return err;