summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2017-03-13 20:11:04 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-03-14 21:24:16 (GMT)
commit0654aa57f30fc7984e19b91cdbee123f929ca7b1 (patch)
tree609fdd98f5457d55ceda3f1e56d93d9b0a26bcaf /cache.h
parent16ac8b8db6ec7400719db6b5c76edaab33c47606 (diff)
downloadgit-0654aa57f30fc7984e19b91cdbee123f929ca7b1.zip
git-0654aa57f30fc7984e19b91cdbee123f929ca7b1.tar.gz
git-0654aa57f30fc7984e19b91cdbee123f929ca7b1.tar.bz2
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 3cba58e..c12bc23 100644
--- a/cache.h
+++ b/cache.h
@@ -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,