pack v4 support in pack-objects
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest posting 2/216 patches 9 repliesIn review
- v2 posting 1/214 patches 0 repliesSuperseded
- v112 patches 4 repliesSuperseded
Patches in v2 posting 2/2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/16 | pack v4: allocate dicts from the beginningpackv4-create.c | +12 | 0 replies | |
| 2/16 | pack v4: stop using static/global variables in packv4-create.cpackv4-create.c packv4-create.h | +69 | 0 replies | |
| 3/16 | pack v4: move packv4-create.c to libgit.aMakefile packv4-create.c packv4-create.h +1 more | +514 | 0 replies | |
| 4/16 | pack v4: add version argument to write_pack_headerbuiltin/ bulk-checkin.c pack-write.c +1 more | +8 | 0 replies | |
| 5/16 | pack_write: tighten valid object type check in encode_in_pack_object_headerpack-write.c | +10 | 0 replies | |
| 6/16 | pack-write.c: add pv4_encode_object_headerpack-write.c pack.h | +34 | 0 replies | |
| 7/16 | pack-objects: add --version to specify written pack versionbuiltin/ | +5 | 0 replies | |
| 8/16 | list-objects.c: add show_tree_entry callback to traverse_commit_listbuiltin/ builtin/ list-objects.c +2 more | +14 | 0 replies | |
| 9/16 | pack-objects: do not cache delta for v4 treesbuiltin/ | +5 | 0 replies | |
| 10/16 | pack-objects: exclude commits out of delta objects in v4builtin/ | +4 | 0 replies | |
| 11/16 | pack-objects: create pack v4 tablesbuiltin/ | +60 | 0 replies | |
| 12/16 | pack-objects: prepare SHA-1 table in v4builtin/ | +52 | 0 replies | |
| 13/16 | pack-objects: support writing pack v4builtin/ pack.h | +78 | 0 replies | |
| 14/16 | pack v4: support "end-of-pack" indicator in index-pack and pack-objectsbuiltin/ builtin/ | +36 | 0 replies | |
| 15/16 | index-pack: use nr_objects_final as sha1_table sizebuiltin/ | +7 | 9 replies | |
| 16/16 | index-pack: support completing thin packs v4builtin/ | +38 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 00/16] pack v4 support in pack-objects
This version supports thin pack. I could clone from git.git with only master, then fetch the rest and fsck did not complain anything. I did not check if I broke --max-pack-size though.
Interesting patches are the ones near the end: "prepare SHA-1 table", "support writing pack v4" and "support completing thin packs"
Still rough edges. If I don't find any new problems, I'll try to run the test suite. My vacation days are over, so I will work at a much slower pace than the last couple days.
Nguyễn Thái Ngọc Duy (16):
pack v4: allocate dicts from the beginning
pack v4: stop using static/global variables in packv4-create.c pack v4: move packv4-create.c to libgit.a
pack v4: add version argument to write_pack_header
pack_write: tighten valid object type check in
encode_in_pack_object_header
pack-write.c: add pv4_encode_object_header
pack-objects: add --version to specify written pack version list-objects.c: add show_tree_entry callback to traverse_commit_list
pack-objects: do not cache delta for v4 trees
pack-objects: exclude commits out of delta objects in v4
pack-objects: create pack v4 tables
pack-objects: prepare SHA-1 table in v4
pack-objects: support writing pack v4
pack v4: support "end-of-pack" indicator in index-pack and
pack-objects
index-pack: use nr_objects_final as sha1_table size
index-pack: support completing thin packs v4
Makefile | 4 +- builtin/index-pack.c | 95 ++++++--- builtin/pack-objects.c | 230 ++++++++++++++++++++-- builtin/rev-list.c | 4 +- bulk-checkin.c | 2 +- list-objects.c | 9 +- list-objects.h | 3 +- pack-write.c | 51 ++++- pack.h | 6 +- packv4-create.c | 523 ++++--------------------------------------------- packv4-create.h (new) | 39 ++++ test-packv4.c (new) | 476 ++++++++++++++++++++++++++++++++++++++++++++ upload-pack.c | 2 +- 13 files changed, 901 insertions(+), 543 deletions(-) create mode 100644 packv4-create.h create mode 100644 test-packv4.c
Signature · 1 line
1.8.2.83.gc99314b