Skip to content

Commit

Permalink
fixup! pack-objects: output debug info about deltas
Browse files Browse the repository at this point in the history
  • Loading branch information
dscho committed Sep 15, 2024
1 parent 8b7a03b commit 4564947
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin/pack-objects.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ static unsigned long write_no_reuse_object(struct hashfile *f, struct object_ent
fprintf(delta_file, ",\n");
fprintf(delta_file, "\t\t{\n");
fprintf(delta_file, "\t\t\t\"oid\" : \"%s\",\n", oid_to_hex(&entry->idx.oid));
fprintf(delta_file, "\t\t\t\"size\" : %"PRIuMAX",\n", datalen);
fprintf(delta_file, "\t\t\t\"size\" : %"PRIuMAX",\n", (uintmax_t)datalen);
}

if (type == OBJ_OFS_DELTA) {
Expand Down Expand Up @@ -648,7 +648,7 @@ static off_t write_reuse_object(struct hashfile *f, struct object_entry *entry,
fprintf(delta_file, ",\n");
fprintf(delta_file, "\t\t{\n");
fprintf(delta_file, "\t\t\t\"oid\" : \"%s\",\n", oid_to_hex(&entry->idx.oid));
fprintf(delta_file, "\t\t\t\"size\" : %"PRIuMAX",\n", entry_size);
fprintf(delta_file, "\t\t\t\"size\" : %"PRIuMAX",\n", (uintmax_t)entry_size);
}

if (type == OBJ_OFS_DELTA) {
Expand Down

0 comments on commit 4564947

Please sign in to comment.