diff options
author | Elijah Newren <newren@gmail.com> | 2023-05-16 08:33:43 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-06-21 20:14:34 +0200 |
commit | fc8173505703a08bea5c648f1ab286013c3fd730 (patch) | |
tree | d68497413bfe6aae4b8922715d041abbd573eb35 /cache.h | |
parent | init-db: remove unnecessary global variable (diff) | |
download | git-fc8173505703a08bea5c648f1ab286013c3fd730.tar.xz git-fc8173505703a08bea5c648f1ab286013c3fd730.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | cache.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -327,7 +327,8 @@ extern struct index_state the_index; int init_db(const char *git_dir, const char *real_git_dir, const char *template_dir, int hash_algo, - const char *initial_branch, unsigned int flags); + const char *initial_branch, int init_shared_repository, + unsigned int flags); void initialize_repository_version(int hash_algo, int reinit); /* Initialize and use the cache information */ |