Skip to content

bulk-checkin continued

Junio C Hamano git 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3csum-file: introduce sha1file_checkpointcsum-file.c csum-file.h fast-import.c+37 -170 replies
2/3bulk-checkin: do not write the same object twicebulk-checkin.c t/t1050-large.sh+37 -110 replies
3/3bulk-checkin: do not write an object that already existsbulk-checkin.c t/t1050-large.sh+28 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] bulk-checkin continued

This updates the earlier bulk-checkin series ($gmane/184440) to further enhance the "large file" topic from 1.7.6 cycle.

The first one adds two API functions to allow truncating a checksummed file that is being written. This is the same patch as the one I sent earlier today.

The second one prevents the bulk-checkin code from writing the same object twice to the stream, and the third one further makes it notice that the object it has just written already exists in the repository. In either case, the packfile is rewound using the new sha1file_checkpoint/truncate API, and the packfile itself is removed if truncation results in an empty output.

The next step is to add the "split-blob" entry in the packfile, but that is a much larger task and will take longer.

Junio C Hamano (3):
csum-file: introduce sha1file_checkpoint
bulk-checkin: do not write the same object twice
bulk-checkin: do not write an object that already exists

 bulk-checkin.c   |   40 +++++++++++++++++++++++++++++++++++-----
 csum-file.c      |   20 ++++++++++++++++++++
 csum-file.h      |    9 +++++++++
 fast-import.c    |   25 ++++++++-----------------
 t/t1050-large.sh |   38 ++++++++++++++++++++++++++++++--------
 5 files changed, 102 insertions(+), 30 deletions(-)
Signature · 1 line
1.7.8.rc3.111.g7d421