summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-07-22 18:24:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-07-22 18:24:09 (GMT)
commitc714f9fd8addc752aaaf1f97bb2be311d9156def (patch)
tree7ec7cf29beede6f5a38729172db8cfd7e4794017 /cache.h
parent4c72ee838f1085a47a3c5144ce1088f1bca42f66 (diff)
parentb2dc09455a9ed5521c2e84fc67d8dacf2c28c39f (diff)
downloadgit-c714f9fd8addc752aaaf1f97bb2be311d9156def.zip
git-c714f9fd8addc752aaaf1f97bb2be311d9156def.tar.gz
git-c714f9fd8addc752aaaf1f97bb2be311d9156def.tar.bz2
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.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/cache.h b/cache.h
index 48e147f..3142b6c 100644
--- a/cache.h
+++ b/cache.h
@@ -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 *);