aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorPierre Habouzit <madcoder@debian.org>2006-08-23 12:39:11 +0200
committerJunio C Hamano <junkio@cox.net>2006-08-23 18:47:38 -0700
commitc5fba16c500ad5847842876df0418664cddf6e50 (patch)
tree93ad8500fd4d1fe4c732e3aadf94645a8524048b /cache.h
parent60b7f38e0e08867b72022de5c20715d8eb72de24 (diff)
downloadgit-c5fba16c500ad5847842876df0418664cddf6e50.tar.gz
git-c5fba16c500ad5847842876df0418664cddf6e50.tar.xz
git_dir holds pointers to local strings, hence MUST be const.
Signed-off-by: Pierre Habouzit <madcoder@debian.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cache.h b/cache.h
index 08d6a9127..304479446 100644
--- a/cache.h
+++ b/cache.h
@@ -123,7 +123,7 @@ extern int cache_errno;
#define INDEX_ENVIRONMENT "GIT_INDEX_FILE"
#define GRAFT_ENVIRONMENT "GIT_GRAFT_FILE"
-extern char *get_git_dir(void);
+extern const char *get_git_dir(void);
extern char *get_object_directory(void);
extern char *get_refs_directory(void);
extern char *get_index_file(void);