diff options
author | Heiko Voigt <hvoigt@hvoigt.net> | 2013-07-12 02:46:47 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-12 20:34:57 +0400 |
commit | 1bc888193e1044db317a45b9a4c8d2b87b998f40 (patch) | |
tree | 79065e0a9e226c1da33366688e0b41d9d45b5463 /cache.h | |
parent | 4d8dd1494e9f3af2e9738edaca40ada096f7bf10 (diff) |
teach config --blob option to parse config from database
This can be used to read configuration values directly from git's
database. For example it is useful for reading to be checked out
.gitmodules files directly from the database.
Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1142,11 +1142,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 *); |