diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2007-01-20 03:09:34 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-01-20 19:10:26 -0800 |
commit | 68025633e352264898de44ec4856552d9a3abece (patch) | |
tree | 4bd49df8df371710a6709a1dbb582d54a38f38fb /cache.h | |
parent | 06f6228a90c50618f0a9793c9e9695be15f93ae2 (diff) | |
download | git-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |