summaryrefslogtreecommitdiffstats
path: root/cache.h
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2023-05-16 08:33:43 +0200
committerJunio C Hamano <gitster@pobox.com>2023-06-21 20:14:34 +0200
commitfc8173505703a08bea5c648f1ab286013c3fd730 (patch)
treed68497413bfe6aae4b8922715d041abbd573eb35 /cache.h
parentinit-db: remove unnecessary global variable (diff)
downloadgit-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cache.h b/cache.h
index bdedb87e83..2bc1cd77d9 100644
--- a/cache.h
+++ b/cache.h
@@ -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 */