diff options
| author | Elijah Newren <newren@gmail.com> | 2023-05-16 06:33:43 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-06-21 11:14:34 -0700 |
| commit | fc8173505703a08bea5c648f1ab286013c3fd730 (patch) | |
| tree | d68497413bfe6aae4b8922715d041abbd573eb35 /cache.h | |
| parent | c2f76965d0202a894c9491e0647b7834b58cd168 (diff) | |
| download | git-fc8173505703a08bea5c648f1ab286013c3fd730.tar.xz | |
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 'cache.h')
| -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 */ |
