reftable: consistently refer to reftable_write_options as opts

Throughout the reftable library the `reftable_write_options` are
sometimes referred to as `cfg` and sometimes as `opts`. Unify these to
consistently use `opts` to avoid confusion.

While at it, touch up the coding style a bit by removing unneeded braces
around one-line statements and newlines between variable declarations.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Patrick Steinhardt
2024-05-13 10:17:54 +02:00
committed by Junio C Hamano
parent 0f3415f1f8
commit 4d35bb2aba
5 changed files with 74 additions and 89 deletions

View File

@ -27,9 +27,9 @@ https://developers.google.com/open-source/licenses/bsd
static int compact_stack(const char *stackdir)
{
struct reftable_stack *stack = NULL;
struct reftable_write_options cfg = { 0 };
struct reftable_write_options opts = { 0 };
int err = reftable_new_stack(&stack, stackdir, cfg);
int err = reftable_new_stack(&stack, stackdir, opts);
if (err < 0)
goto done;