From d2b0708e1a65953ad93a4adfc27938de0f8df252 Mon Sep 17 00:00:00 2001 From: Dmitry Potapov Date: Sat, 27 Sep 2008 12:41:50 +0400 Subject: add have_git_dir() function This function is used to learn whether git_dir is already set up or not. It is necessary, because we want to read configuration in compat/cygwin.c Signed-off-by: Dmitry Potapov Signed-off-by: Shawn O. Pearce --- cache.h | 1 + 1 file changed, 1 insertion(+) (limited to 'cache.h') diff --git a/cache.h b/cache.h index 99af83a04..818804dad 100644 --- a/cache.h +++ b/cache.h @@ -313,6 +313,7 @@ extern int is_bare_repository(void); extern int is_inside_git_dir(void); extern char *git_work_tree_cfg; extern int is_inside_work_tree(void); +extern int have_git_dir(void); extern const char *get_git_dir(void); extern char *get_object_directory(void); extern char *get_index_file(void); -- cgit v1.2.1