diff options
| author | Taylor Blau <me@ttaylorr.com> | 2024-10-30 13:08:01 -0400 |
|---|---|---|
| committer | Taylor Blau <me@ttaylorr.com> | 2024-10-30 13:08:01 -0400 |
| commit | bc627658b06155a0b1c3d0b1b0bf72db70770dc9 (patch) | |
| tree | ddb335401e63360a7220dd087b55f62f04cc0987 /t/unit-tests/lib-reftable.c | |
| parent | The fifth batch (diff) | |
| parent | reftable: handle trivial `reftable_buf` errors (diff) | |
| download | git-bc627658b06155a0b1c3d0b1b0bf72db70770dc9.tar.gz git-bc627658b06155a0b1c3d0b1b0bf72db70770dc9.zip | |
Merge branch 'ps/reftable-strbuf'
Implements a new reftable-specific strbuf replacement to reduce
reftable's dependency on Git-specific data structures.
* ps/reftable-strbuf:
reftable: handle trivial `reftable_buf` errors
reftable/stack: adapt `stack_filename()` to handle allocation failures
reftable/record: adapt `reftable_record_key()` to handle allocation failures
reftable/stack: adapt `format_name()` to handle allocation failures
t/unit-tests: check for `reftable_buf` allocation errors
reftable/blocksource: adapt interface name
reftable: convert from `strbuf` to `reftable_buf`
reftable/basics: provide new `reftable_buf` interface
reftable: stop using `strbuf_addf()`
reftable: stop using `strbuf_addbuf()`
Diffstat (limited to 't/unit-tests/lib-reftable.c')
| -rw-r--r-- | t/unit-tests/lib-reftable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/unit-tests/lib-reftable.c b/t/unit-tests/lib-reftable.c index 54c26c43e7..2ddf480588 100644 --- a/t/unit-tests/lib-reftable.c +++ b/t/unit-tests/lib-reftable.c @@ -19,7 +19,7 @@ static int strbuf_writer_flush(void *arg UNUSED) return 0; } -struct reftable_writer *t_reftable_strbuf_writer(struct strbuf *buf, +struct reftable_writer *t_reftable_strbuf_writer(struct reftable_buf *buf, struct reftable_write_options *opts) { struct reftable_writer *writer; @@ -29,7 +29,7 @@ struct reftable_writer *t_reftable_strbuf_writer(struct strbuf *buf, return writer; } -void t_reftable_write_to_buf(struct strbuf *buf, +void t_reftable_write_to_buf(struct reftable_buf *buf, struct reftable_ref_record *refs, size_t nrefs, struct reftable_log_record *logs, |
