]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'ps/reftable-api-revamp'
authorJunio C Hamano <gitster@pobox.com>
Tue, 29 Apr 2025 21:21:29 +0000 (14:21 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 29 Apr 2025 21:21:30 +0000 (14:21 -0700)
Overhaul of the reftable API.

* ps/reftable-api-revamp:
  reftable/table: move printing logic into test helper
  reftable/constants: make block types part of the public interface
  reftable/table: introduce iterator for table blocks
  reftable/table: add `reftable_table` to the public interface
  reftable/block: expose a generic iterator over reftable records
  reftable/block: make block iterators reseekable
  reftable/block: store block pointer in the block iterator
  reftable/block: create public interface for reading blocks
  git-zlib: use `struct z_stream_s` instead of typedef
  reftable/block: rename `block_reader` to `reftable_block`
  reftable/block: rename `block` to `block_data`
  reftable/table: move reading block into block reader
  reftable/block: simplify how we track restart points
  reftable/blocksource: consolidate code into a single file
  reftable/reader: rename data structure to "table"
  reftable: fix formatting of the license header

1  2 
Makefile
meson.build
reftable/block.c
reftable/block.h
reftable/record.c
reftable/system.h
reftable/writer.c
t/meson.build
t/t0613-reftable-write-options.sh

diff --cc Makefile
index 39b7c15524349b679739519d0474fcf082ad9e95,58bd9dc64523afa3b815123177a0b411eca1c9e5..8de83072106a5fd4a0e2a055eea4853e1a9d54a2
+++ b/Makefile
@@@ -1380,7 -1377,9 +1380,7 @@@ UNIT_TEST_PROGRAMS += t-reftable-p
  UNIT_TEST_PROGRAMS += t-reftable-readwrite
  UNIT_TEST_PROGRAMS += t-reftable-record
  UNIT_TEST_PROGRAMS += t-reftable-stack
 -UNIT_TEST_PROGRAMS += t-trailer
 -UNIT_TEST_PROGRAMS += t-urlmatch-normalization
+ UNIT_TEST_PROGRAMS += t-reftable-table
  UNIT_TEST_PROGS = $(patsubst %,$(UNIT_TEST_BIN)/%$X,$(UNIT_TEST_PROGRAMS))
  UNIT_TEST_OBJS += $(UNIT_TEST_DIR)/test-lib.o
  UNIT_TEST_OBJS += $(UNIT_TEST_DIR)/lib-reftable.o
diff --cc meson.build
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc t/meson.build
index bfb744e8863d985ce80d65d85eefadd355a44154,ded928d9e6d8335c4f7461cab17de8ccc0a3e1eb..43c9750b88e3ab8898c5e97f09838411c277908e
@@@ -61,7 -59,9 +61,7 @@@ unit_test_programs = 
    'unit-tests/t-reftable-readwrite.c',
    'unit-tests/t-reftable-record.c',
    'unit-tests/t-reftable-stack.c',
 -  'unit-tests/t-trailer.c',
 -  'unit-tests/t-urlmatch-normalization.c',
+   'unit-tests/t-reftable-table.c',
  ]
  
  foreach unit_test_program : unit_test_programs
Simple merge