]> git.ipfire.org Git - thirdparty/git.git/commit - config.c
setup: make read_early_config() reusable
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 13 Mar 2017 20:11:04 +0000 (21:11 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 14 Mar 2017 21:24:16 +0000 (14:24 -0700)
commit0654aa57f30fc7984e19b91cdbee123f929ca7b1
tree609fdd98f5457d55ceda3f1e56d93d9b0a26bcaf
parent16ac8b8db6ec7400719db6b5c76edaab33c47606
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>
cache.h
config.c
pager.c