aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2008-04-27 13:39:27 -0400
committerJunio C Hamano <gitster@pobox.com>2008-05-04 17:41:45 -0700
commitf225aeb278eb1c8c028cd2ff1fdfe7a45067b8e1 (patch)
tree48c4a929656714194ff3f0ccf62a691a21b58a00 /cache.h
parent19757d80e522e9f04c125ad5977c3a79db99b192 (diff)
downloadgit-f225aeb278eb1c8c028cd2ff1fdfe7a45067b8e1.tar.gz
git-f225aeb278eb1c8c028cd2ff1fdfe7a45067b8e1.tar.xz
Provide API access to init_db()
The caller first calls set_git_dir() to specify the GIT_DIR, and then calls init_db() to initialize it. This also cleans up various parts of the code to account for the fact that everything is done with GIT_DIR set, so it's unnecessary to pass the specified directory around. Signed-off-by: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index aba029315..f3ad9741c 100644
--- a/cache.h
+++ b/cache.h
@@ -324,6 +324,10 @@ extern const char *prefix_filename(const char *prefix, int len, const char *path
extern void verify_filename(const char *prefix, const char *name);
extern void verify_non_filename(const char *prefix, const char *name);
+#define INIT_DB_QUIET 0x0001
+
+extern int init_db(const char *template_dir, unsigned int flags);
+
#define alloc_nr(x) (((x)+16)*3/2)
/*