chunk-format: introduce `pair_chunk_expect()` convenience API
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest8 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | chunk-format: introduce `pair_chunk_expect()` helperchunk-format.c chunk-format.h | +33 | 0 replies | |
| 2/8 | commit-graph: read `OIDF` chunk with `pair_chunk_expect()`commit-graph.c | +4 | 0 replies | |
| 3/8 | commit-graph: read `CDAT` chunk with `pair_chunk_expect()`commit-graph.c | +4 | 0 replies | |
| 4/8 | commit-graph: read `GDAT` chunk with `pair_chunk_expect()`commit-graph.c | +5 | 0 replies | |
| 5/8 | commit-graph: read `BIDX` chunk with `pair_chunk_expect()`commit-graph.c | +4 | 3 replies | |
| 6/8 | midx: read `OIDF` chunk with `pair_chunk_expect()`midx.c | +6 | 1 reply | |
| 7/8 | midx: read `OIDL` chunk with `pair_chunk_expect()`midx.c | +4 | 0 replies | |
| 8/8 | midx: read `OOFF` chunk with `pair_chunk_expect()`midx.c | +5 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/8] chunk-format: introduce `pair_chunk_expect()` convenience API
While reviewing this series, I noticed a couple of spots that would be helped by having a convenience function that stores the start of a chunk in a designated location *after* checking that the chunk has the expected size.
I called this function pair_chunk_expect() and touched up seven spots that I think could benefit from having a convenience function like this.
This applies directly on top of 'jk/chunk-bounds'. Thanks in advance for your review!
Taylor Blau (8):
chunk-format: introduce pair_chunk_expect() helper
commit-graph: read OIDF 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 OIDF chunk with pair_chunk_expect()
midx: read OIDL chunk with pair_chunk_expect()
midx: read OOFF chunk with pair_chunk_expect()
chunk-format.c | 22 +++++++++++++++++ chunk-format.h | 12 +++++++++- commit-graph.c | 65 +++++++++++++------------------------------------- midx.c | 58 ++++++++++++-------------------------------- 4 files changed, 65 insertions(+), 92 deletions(-)
Signature · 1 line
2.42.0.352.gd9c5062ff7.dirty