aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2016-09-25 10:14:37 +0700
committerJunio C Hamano <gitster@pobox.com>2016-09-25 16:32:35 -0700
commit33158701e2cac4244a236cd18d9d336f66e535f3 (patch)
treefbb5ae9663797e8c3b74afc59801d65e053753f6 /cache.h
parentfe9aa0b22e18e5cd1ae4a9323edad0d3c8177c90 (diff)
downloadgit-33158701e2cac4244a236cd18d9d336f66e535f3.tar.gz
git-33158701e2cac4244a236cd18d9d336f66e535f3.tar.xz
init: call set_git_dir_init() from within init_db()
The next commit requires that set_git_dir_init() must be called before init_db(). Let's make sure nobody can do otherwise. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/cache.h b/cache.h
index b2d77f3eb..7fc875ff0 100644
--- a/cache.h
+++ b/cache.h
@@ -525,9 +525,10 @@ extern void verify_non_filename(const char *prefix, const char *name);
extern int path_inside_repo(const char *prefix, const char *path);
#define INIT_DB_QUIET 0x0001
+#define INIT_DB_EXIST_OK 0x0002
-extern int set_git_dir_init(const char *git_dir, const char *real_git_dir, int);
-extern int init_db(const char *template_dir, unsigned int flags);
+extern int init_db(const char *git_dir, const char *real_git_dir,
+ const char *template_dir, unsigned int flags);
extern void sanitize_stdfds(void);
extern int daemonize(void);