diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2017-03-13 23:11:04 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-15 00:24:16 +0300 |
commit | 0654aa57f30fc7984e19b91cdbee123f929ca7b1 (patch) | |
tree | 609fdd98f5457d55ceda3f1e56d93d9b0a26bcaf /cache.h | |
parent | 16ac8b8db6ec7400719db6b5c76edaab33c47606 (diff) |
setup: make read_early_config() reusable
The pager configuration needs to be read early, possibly before
discovering any .git/ directory.
Let's not hide this function in pager.c, but make it available to other
callers.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
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
@@ -1760,6 +1760,7 @@ extern int git_config_from_blob_sha1(config_fn_t fn, const char *name, const unsigned char *sha1, void *data); extern void git_config_push_parameter(const char *text); extern int git_config_from_parameters(config_fn_t fn, void *data); +extern void read_early_config(config_fn_t cb, void *data); extern void git_config(config_fn_t fn, void *); extern int git_config_with_options(config_fn_t fn, void *, struct git_config_source *config_source, |