Skip to content

np/pack-v4 updates

Nguyễn Thái Ngọc Duy git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest21 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/21fixup! pack-objects: prepare SHA-1 table in v4builtin/pack-objects.c+0 -10 replies
2/21fixup! pack-objects: support writing pack v4builtin/pack-objects.c+6 -40 replies
3/21fixup! pack v4: support "end-of-pack" indicator in index-pack and pack-objectsbuiltin/pack-objects.c+1 -10 replies
4/21fixup! index-pack: parse v4 header and dictionariesbuiltin/index-pack.c+2 -10 replies
5/21fixup! index-pack: record all delta bases in v4 (tree and ref-delta)builtin/index-pack.c+1 -10 replies
6/21pack v4: lift dict size check in load_dict()packv4-parse.c+0 -40 replies
7/21pack v4: move pv4 objhdr parsing code to packv4-parse.cpackv4-parse.c packv4-parse.h sha1_file.c+19 -70 replies
8/21pack-objects: respect compression level in v4builtin/pack-objects.c packv4-create.c packv4-create.h +1 more+22 -150 replies
9/21pack-objects: recognize v4 as pack sourcebuiltin/pack-objects.c packv4-parse.h+27 -30 replies
10/21pack v4: add a note that streaming does not support OBJ_PV4_*streaming.c+1 -10 replies
11/21unpack-objects: report missing object namebuiltin/unpack-objects.c+1 -10 replies
12/21unpack-objects: recognize end-of-pack in v4 thin packbuiltin/unpack-objects.c+13 -50 replies
13/21unpack-objects: read v4 dictionariesbuiltin/unpack-objects.c+50 -00 replies
14/21unpack-objects: decode v4 object headerbuiltin/unpack-objects.c+22 -160 replies
15/21unpack-objects: decode v4 ref-deltabuiltin/unpack-objects.c+22 -30 replies
16/21unpack-objects: decode v4 commitsbuiltin/unpack-objects.c+60 -00 replies
17/21unpack-objects: allow to save processed bytes to a bufferbuiltin/unpack-objects.c+17 -00 replies
18/21unpack-objects: decode v4 treesbuiltin/unpack-objects.c+189 -20 replies
19/21index-pack, pack-objects: allow creating .idx v2 with .pack v4builtin/index-pack.c builtin/pack-objects.c+20 -81 reply
20/21show-index: acknowledge that it does not read .idx v3show-index.c+3 -11 reply
21/21t1050, t5500: replace the use of "show-index|wc -l" with verify-packt/t1050-large.sh t/t5500-fetch-pack.sh+7 -60 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/21] np/pack-v4 updates

This contains fixups for some of my patches, some of Nico's, adds v4 support to unpack-objects because the test suite needs it. With these, when force generating pack v4 unconditionally, the remaining failed tests are:

- t5300-pack-object: ofs-delta tests fail (not surprising). core.packsizelimit also fails. Kinda expected, but not my top priority.

- t5302-pack-index: mainly to test .idx v2, expected

- t5303-pack-corruption-resilience: if I force generating .idx v2 with .pack v4, I could get to 1/3 of it. Need a deeper look.

So v4 code is in pretty good shape in terms of correctness and near function complete. Brave souls should try it out.

Nguyễn Thái Ngọc Duy (21):
fixup! pack-objects: prepare SHA-1 table in v4
fixup! pack-objects: support writing pack v4
fixup! pack v4: support "end-of-pack" indicator in index-pack and pack-objects fixup! index-pack: parse v4 header and dictionaries
fixup! index-pack: record all delta bases in v4 (tree and ref-delta) pack v4: lift dict size check in load_dict()
pack v4: move pv4 objhdr parsing code to packv4-parse.c
pack-objects: respect compression level in v4
pack-objects: recognize v4 as pack source
pack v4: add a note that streaming does not support OBJ_PV4_*
unpack-objects: report missing object name
unpack-objects: recognize end-of-pack in v4 thin pack
unpack-objects: read v4 dictionaries
unpack-objects: decode v4 object header
unpack-objects: decode v4 ref-delta
unpack-objects: decode v4 commits
unpack-objects: allow to save processed bytes to a buffer
unpack-objects: decode v4 trees
index-pack, pack-objects: allow creating .idx v2 with .pack v4
show-index: acknowledge that it does not read .idx v3
t1050, t5500: replace the use of "show-index|wc -l" with verify-pack

 builtin/index-pack.c     |  19 ++-
 builtin/pack-objects.c   |  60 +++++--
 builtin/unpack-objects.c | 395 ++++++++++++++++++++++++++++++++++++++++++++---
 packv4-create.c          |  17 +-
 packv4-create.h          |   6 +-
 packv4-parse.c           |  16 +-
 packv4-parse.h           |   7 +
 sha1_file.c              |   9 +-
 show-index.c             |   4 +-
 streaming.c              |   2 +-
 t/t1050-large.sh         |   9 +-
 t/t5500-fetch-pack.sh    |   4 +-
 test-packv4.c            |   9 +-
 13 files changed, 480 insertions(+), 77 deletions(-)
Signature · 1 line
1.8.2.82.gc24b958