aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2007-01-20 03:09:34 +0100
committerJunio C Hamano <junkio@cox.net>2007-01-20 19:10:26 -0800
commit68025633e352264898de44ec4856552d9a3abece (patch)
tree4bd49df8df371710a6709a1dbb582d54a38f38fb /cache.h
parent06f6228a90c50618f0a9793c9e9695be15f93ae2 (diff)
downloadgit-68025633e352264898de44ec4856552d9a3abece.tar.gz
git-68025633e352264898de44ec4856552d9a3abece.tar.xz
Do not verify filenames in a bare repository
For example, it makes no sense to check the presence of a file named "HEAD" when calling "git log HEAD" in a bare repository. Noticed by Han-Wen Nienhuys. Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index a218db3b3..473197ded 100644
--- a/cache.h
+++ b/cache.h
@@ -129,6 +129,7 @@ extern int cache_errno;
extern int is_bare_repository_cfg;
extern int is_bare_repository(void);
+extern int is_inside_git_dir(void);
extern const char *get_git_dir(void);
extern char *get_object_directory(void);
extern char *get_refs_directory(void);