Skip to content

pack v4 support in pack-objects

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. v2 Latest posting 2/216 patches 9 repliesIn review
  2. v2 posting 1/214 patches 0 repliesSuperseded
  3. v112 patches 4 repliesSuperseded

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16pack v4: allocate dicts from the beginningpackv4-create.c+12 -100 replies
2/16pack v4: stop using static/global variables in packv4-create.cpackv4-create.c packv4-create.h+69 -450 replies
3/16pack v4: move packv4-create.c to libgit.aMakefile packv4-create.c packv4-create.h +1 more+514 -4740 replies
4/16pack v4: add version argument to write_pack_headerbuiltin/pack-objects.c bulk-checkin.c pack-write.c +1 more+8 -60 replies
5/16pack_write: tighten valid object type check in encode_in_pack_object_headerpack-write.c+10 -10 replies
6/16pack-write.c: add pv4_encode_object_headerpack-write.c pack.h+34 -00 replies
7/16pack-objects: add --version to specify written pack versionbuiltin/pack-objects.c+5 -10 replies
8/16list-objects.c: add show_tree_entry callback to traverse_commit_listbuiltin/pack-objects.c builtin/rev-list.c list-objects.c +2 more+14 -60 replies
9/16pack-objects: do not cache delta for v4 treesbuiltin/pack-objects.c+5 -10 replies
10/16pack-objects: exclude commits out of delta objects in v4builtin/pack-objects.c+4 -10 replies
11/16pack-objects: create pack v4 tablesbuiltin/pack-objects.c+60 -20 replies
12/16pack-objects: prepare SHA-1 table in v4builtin/pack-objects.c+52 -30 replies
13/16pack-objects: support writing pack v4builtin/pack-objects.c pack.h+78 -90 replies
14/16pack v4: support "end-of-pack" indicator in index-pack and pack-objectsbuiltin/index-pack.c builtin/pack-objects.c+36 -80 replies
15/16index-pack: use nr_objects_final as sha1_table sizebuiltin/index-pack.c+7 -69 replies
16/16index-pack: support completing thin packs v4builtin/index-pack.c+38 -150 replies

Reviews trailers per patch

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

Read the v2 thread

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