Skip to content

Large blob fixes

Nguyễn Thái Ngọc Duy git 3 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest11 patches 2 repliesIn review
  2. v210 patches 3 repliesSuperseded
  3. v111 patches 8 repliesSuperseded

Changes in v3 from the cover letter

- set core.bigfilethreshold globally in t1050 to make git-clone happy because there's currently no way to specify this in git-clone (or is there?)
- fix the bad coding taste in builtin/cat-file.c
- make update-server-info respect core.bigfilethreshold, which makes repack pass on repositories that have tags

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11Add more large blob test casest/t1050-large.sh wrapper.c+85 -50 replies
2/11streaming: make streaming-write-entry to be more reusableentry.c streaming.c streaming.h+62 -480 replies
3/11cat-file: use streaming interface to print blobsbuiltin/cat-file.c t/t1050-large.sh+26 -20 replies
4/11parse_object: special code path for blobs to avoid putting whole object in memoryobject.c sha1_file.c+43 -11 reply
5/11show: use streaming interface for showing blobsbuiltin/log.c t/t1050-large.sh+21 -150 replies
6/11index-pack: split second pass obj handling into own functionbuiltin/index-pack.c+18 -130 replies
7/11index-pack: reduce memory usage when the pack has large blobsbuiltin/index-pack.c t/t1050-large.sh+53 -150 replies
8/11pack-check: do not unpack blobscache.h fast-import.c pack-check.c +2 more+58 -140 replies
9/11archive: support streaming large files to a tar archivearchive-tar.c archive-zip.c archive.c +2 more+77 -311 reply
10/11fsck: use streaming interface for writing lost-found blobsbuiltin/fsck.c+2 -60 replies
11/11update-server-info: respect core.bigfilethresholdbuiltin/update-server-info.c t/t1050-large.sh+2 -10 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 00/11] Large blob fixes

Changes from v2:

- set core.bigfilethreshold globally in t1050 to make git-clone happy because there's currently no way to specify this in git-clone (or is there?)
- fix the bad coding taste in builtin/cat-file.c
- make update-server-info respect core.bigfilethreshold, which makes repack pass on repositories that have tags

Junio C Hamano (1):
streaming: make streaming-write-entry to be more reusable

Nguyễn Thái Ngọc Duy (10):
Add more large blob test cases
cat-file: use streaming interface to print blobs
parse_object: special code path for blobs to avoid putting whole
object in memory
show: use streaming interface for showing blobs
index-pack: split second pass obj handling into own function
index-pack: reduce memory usage when the pack has large blobs
pack-check: do not unpack blobs
archive: support streaming large files to a tar archive
fsck: use streaming interface for writing lost-found blobs
update-server-info: respect core.bigfilethreshold

 archive-tar.c                |   35 ++++++++++++---
 archive-zip.c                |    9 ++--
 archive.c                    |   51 +++++++++++++++-------
 archive.h                    |   11 ++++-
 builtin/cat-file.c           |   24 +++++++++++
 builtin/fsck.c               |    8 +---
 builtin/index-pack.c         |   95 ++++++++++++++++++++++++++++++-----------
 builtin/log.c                |   34 +++++++++------
 builtin/update-server-info.c |    1 +
 cache.h                      |    2 +-
 entry.c                      |   53 ++---------------------
 fast-import.c                |    2 +-
 object.c                     |   11 +++++
 pack-check.c                 |   21 +++++++++-
 sha1_file.c                  |   78 +++++++++++++++++++++++++++++-----
 streaming.c                  |   55 ++++++++++++++++++++++++
 streaming.h                  |    2 +
 t/t1050-large.sh             |   63 +++++++++++++++++++++++++++-
 wrapper.c                    |   27 +++++++++++-
 19 files changed, 439 insertions(+), 143 deletions(-)
Signature · 1 line
1.7.3.1.256.g2539c.dirty