aboutsummaryrefslogtreecommitdiff
path: root/reftable/dump.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-05-13 10:17:54 +0200
committerJunio C Hamano <gitster@pobox.com>2024-05-13 17:02:37 -0700
commit4d35bb2abaeff3965024b0f1599641641bcb17a6 (patch)
treed02006886d4b881f785cccf822a4dcf1d844d82c /reftable/dump.c
parent0f3415f1f8478b05e64db11eb8aaa2915e48fef6 (diff)
downloadgit-4d35bb2abaeff3965024b0f1599641641bcb17a6.tar.xz
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>
Diffstat (limited to 'reftable/dump.c')
-rw-r--r--reftable/dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/reftable/dump.c b/reftable/dump.c
index 26e0393c7d..9c770a10cc 100644
--- a/reftable/dump.c
+++ b/reftable/dump.c
@@ -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;