aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2023-05-16 06:33:44 +0000
committerJunio C Hamano <gitster@pobox.com>2023-06-21 13:39:53 -0700
commite8cf8ef5075d7805846f0f7159f8d072b07e588e (patch)
treeb69f575968eeff49cb682502e5687e1587f6374c /cache.h
parentfc8173505703a08bea5c648f1ab286013c3fd730 (diff)
downloadgit-e8cf8ef5075d7805846f0f7159f8d072b07e588e.tar.xz
setup: adopt shared init-db & clone code
The functions init_db() and initialize_repository_version() were shared by builtin/init-db.c and builtin/clone.c, and declared in cache.h. Move these functions, plus their several helpers only used by these functions, to setup.[ch]. Diff best viewed with `--color-moved`. 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.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/cache.h b/cache.h
index 2bc1cd77d9..8b2eb52f04 100644
--- a/cache.h
+++ b/cache.h
@@ -322,15 +322,6 @@ void prefetch_cache_entries(const struct index_state *istate,
extern struct index_state the_index;
#endif
-#define INIT_DB_QUIET 0x0001
-#define INIT_DB_EXIST_OK 0x0002
-
-int init_db(const char *git_dir, const char *real_git_dir,
- const char *template_dir, int hash_algo,
- 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 */
struct lock_file;
void preload_index(struct index_state *index,