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:

committed by
Junio C Hamano

parent
0f3415f1f8
commit
4d35bb2aba
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user