config: only read .git/config from configured repos
[gitweb.git] / cache.h
diff --git a/cache.h b/cache.h
index 5e50887d63d2cd3883eab8cdea12ad5ee8e19c4d..67ec356c7a787e6316d2e53138582ea78c366a72 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -453,6 +453,12 @@ static inline enum object_type object_type(unsigned int mode)
  */
 extern const char * const local_repo_env[];
 
+/*
+ * Returns true iff we have a configured git repository (either via
+ * setup_git_directory, or in the environment via $GIT_DIR).
+ */
+int have_git_dir(void);
+
 extern int is_bare_repository_cfg;
 extern int is_bare_repository(void);
 extern int is_inside_git_dir(void);