aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-11-26 22:32:33 +0700
committerJunio C Hamano <gitster@pobox.com>2010-12-22 14:34:24 -0800
commitdbdf5854b21852676de6a8baf052147217ce809b (patch)
tree0da4313994e3c25128686156f6afeb34c3bc87c9 /cache.h
parent80d868b068b9e68a4aac91be578a8f097f45d8da (diff)
downloadgit-dbdf5854b21852676de6a8baf052147217ce809b.tar.gz
git-dbdf5854b21852676de6a8baf052147217ce809b.tar.xz
Add git_config_early()
This version of git_config() will be used during repository setup. As a repository is being set up, $GIT_DIR is not nailed down yet, git_pathdup() should not be used to get $GIT_DIR/config. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 d1bee5d51..123dd4bb9 100644
--- a/cache.h
+++ b/cache.h
@@ -986,6 +986,7 @@ extern int git_config_parse_parameter(const char *text);
extern int git_config_parse_environment(void);
extern int git_config_from_parameters(config_fn_t fn, void *data);
extern int git_config(config_fn_t fn, void *);
+extern int git_config_early(config_fn_t fn, void *, const char *repo_config);
extern int git_parse_ulong(const char *, unsigned long *);
extern int git_config_int(const char *, const char *);
extern unsigned long git_config_ulong(const char *, const char *);