diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-07-22 11:24:09 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-22 11:24:09 -0700 |
commit | c714f9fd8addc752aaaf1f97bb2be311d9156def (patch) | |
tree | 7ec7cf29beede6f5a38729172db8cfd7e4794017 /cache.h | |
parent | 4c72ee838f1085a47a3c5144ce1088f1bca42f66 (diff) | |
parent | b2dc09455a9ed5521c2e84fc67d8dacf2c28c39f (diff) | |
download | git-c714f9fd8addc752aaaf1f97bb2be311d9156def.tar.gz |
Merge branch 'hv/config-from-blob'
Allow configuration data to be read from in-tree blob objects,
which would help working in a bare repository and submodule
updates.
* hv/config-from-blob:
do not die when error in config parsing of buf occurs
teach config --blob option to parse config from database
config: make parsing stack struct independent from actual data source
config: drop cf validity check in get_next_char()
config: factor out config file stack management
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1176,11 +1176,15 @@ extern int update_server_info(int); typedef int (*config_fn_t)(const char *, const char *, void *); extern int git_default_config(const char *, const char *, void *); extern int git_config_from_file(config_fn_t fn, const char *, void *); +extern int git_config_from_buf(config_fn_t fn, const char *name, + const char *buf, size_t len, void *data); extern void git_config_push_parameter(const char *text); 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_with_options(config_fn_t fn, void *, - const char *filename, int respect_includes); + const char *filename, + const char *blob_ref, + int respect_includes); 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 *); |