]> git.ipfire.org Git - thirdparty/git.git/commit
init-db, clone: change unnecessary global into passed parameter
authorElijah Newren <newren@gmail.com>
Tue, 16 May 2023 06:33:43 +0000 (06:33 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 Jun 2023 18:14:34 +0000 (11:14 -0700)
commitfc8173505703a08bea5c648f1ab286013c3fd730
treed68497413bfe6aae4b8922715d041abbd573eb35
parentc2f76965d0202a894c9491e0647b7834b58cd168
init-db, clone: change unnecessary global into passed parameter

Much like the parent commit, this commit was prompted by a desire to
move the functions which builtin/init-db.c and builtin/clone.c share out
of the former file and into setup.c.  A secondary issue that made it
difficult was the init_shared_repository global variable; replace it
with a simple parameter that is passed to the relevant functions.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clone.c
builtin/init-db.c
cache.h