]> git.ipfire.org Git - thirdparty/git.git/commit
refs: rename `init_db` callback to avoid confusion
authorPatrick Steinhardt <ps@pks.im>
Fri, 17 May 2024 08:18:19 +0000 (10:18 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 17 May 2024 17:33:36 +0000 (10:33 -0700)
commited93ea16025decb60eb91308d682884e263e6f85
treeed27ff45724032a288d82cbd745bd128a4f8bd87
parent1febabff7a3945537b5cd7ec0ad4a4e8b2ba9001
refs: rename `init_db` callback to avoid confusion

Reference backends have two callbacks `init` and `init_db`. The
similarity of these two callbacks has repeatedly confused me whenever I
was looking at them, where I always had to look up which of them does
what.

Rename the `init_db` callback to `create_on_disk`, which should
hopefully be clearer.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/worktree.c
refs.c
refs.h
refs/debug.c
refs/files-backend.c
refs/packed-backend.c
refs/refs-internal.h
refs/reftable-backend.c
setup.c