]> git.ipfire.org Git - thirdparty/git.git/commit - setup.c
setup: extract function to create the refdb
authorPatrick Steinhardt <ps@pks.im>
Tue, 12 Dec 2023 07:00:41 +0000 (08:00 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Dec 2023 19:16:54 +0000 (11:16 -0800)
commit79543e760d0219063ab21f687e7538c3e89b2e99
treef4a51571c5319b4d52014dfa3c93b8e97b980a36
parent564d0252ca632e0264ed670534a51d18a689ef5d
setup: extract function to create the refdb

We're about to let callers skip creation of the reference database when
calling `init_db()`. Extract the logic into a standalone function so
that it becomes easier to do this refactoring.

While at it, expand the comment that explains why we always create the
"refs/" directory.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
setup.c