Skip to content

chunk-format: introduce `pair_chunk_expect()`

Taylor Blau git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7chunk-format: introduce `pair_chunk_expect()` helperchunk-format.c chunk-format.h+41 -112 replies
2/7commit-graph: read `OIDL` chunk with `pair_chunk_expect()`commit-graph.c t/t5318-commit-graph.sh+5 -141 reply
3/7commit-graph: read `CDAT` chunk with `pair_chunk_expect()`commit-graph.c t/t5318-commit-graph.sh+4 -140 replies
4/7commit-graph: read `GDAT` chunk with `pair_chunk_expect()`commit-graph.c+5 -120 replies
5/7commit-graph: read `BIDX` chunk with `pair_chunk_expect()`commit-graph.c+5 -140 replies
6/7midx: read `OIDL` chunk with `pair_chunk_expect()`midx.c t/t5319-multi-pack-index.sh+2 -150 replies
7/7midx: read `OOFF` chunk with `pair_chunk_expect()`midx.c t/t5319-multi-pack-index.sh+3 -150 replies

Reviews trailers per patch

None of the 7 patches has a Reviewed-by or Acked-by.

PatchJeff King
1/7Helped-by
2/7
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] chunk-format: introduce `pair_chunk_expect()`

This series is based on the latest patches in what I am assuming will become "jk/chunk-bounds", found here [1].

This is a rework of my earlier round of patches in [2], which introduces a new pair_chunk_expect() to replace some of the trivial callbacks given to read_chunk() that assert on the size of the expected chunk.

Let me know what you think, and thanks in advance for your review!

[1]: https://lore.kernel.org/git/[email protected]/
[2]: https://lore.kernel.org/git/[email protected]/

Taylor Blau (7):
chunk-format: introduce pair_chunk_expect() helper
commit-graph: read OIDL chunk with pair_chunk_expect()
commit-graph: read CDAT chunk with pair_chunk_expect()
commit-graph: read GDAT chunk with pair_chunk_expect()
commit-graph: read BIDX chunk with pair_chunk_expect()
midx: read OIDL chunk with pair_chunk_expect()
midx: read OOFF chunk with pair_chunk_expect()

 chunk-format.c              | 29 ++++++++++++++++
 chunk-format.h              | 13 ++++++-
 commit-graph.c              | 67 ++++++++++---------------------------
 midx.c                      | 33 +++---------------
 t/t5318-commit-graph.sh     |  6 ++--
 t/t5319-multi-pack-index.sh |  2 --
 6 files changed, 65 insertions(+), 85 deletions(-)

base-commit: 8be77c5de65442b331a28d63802c7a3b94a06c5a
prerequisite-patch-id: 507f1dfd74fae351883612048d334ed750db8b8c
prerequisite-patch-id: c5eef290abc1d28950b3ee8729ea86d2e1773027
prerequisite-patch-id: 0853baab4862833faee8ade3b1b63ee3aa406224
prerequisite-patch-id: 6dd32f90fd87aa92f7d0661414cdaab257bd14b7
prerequisite-patch-id: b0e1617c501a011c703605e59dd5eba89f8a3573
prerequisite-patch-id: 906426f565c470dc86d7e7379d25ecfbd2bc30ce
prerequisite-patch-id: 970cd79d1911bde36b88c340f001266d7e8d843b
prerequisite-patch-id: 083a24abc73a83345bd9e4ca714577990dd9b08b
prerequisite-patch-id: 210371a338dfe9b6f905d8821501aa9c235c8722

Signature · 1 line
2.43.0.rc0.39.g44bd344727