diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-11-26 22:32:33 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-12-22 14:34:24 -0800 |
commit | dbdf5854b21852676de6a8baf052147217ce809b (patch) | |
tree | 0da4313994e3c25128686156f6afeb34c3bc87c9 /cache.h | |
parent | 80d868b068b9e68a4aac91be578a8f097f45d8da (diff) | |
download | git-dbdf5854b21852676de6a8baf052147217ce809b.tar.gz |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 *); |