pager: use callbacks instead of configset
commit6a1e1bc0a155faa5a095ce00bd06678a1dfa0eea
authorJeff King <peff@peff.net>
Tue, 13 Sep 2016 03:23:52 +0000 (12 20:23 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Sep 2016 22:45:45 +0000 (13 15:45 -0700)
treea39d5971e72ad8bbf261b572223f25ebdb4f5425
parentc0c08897c47eb46179c8d2408dc1a91713307842
pager: use callbacks instead of configset

While the cached configset interface is more pleasant to
use, it is not appropriate for "early" config like pager
setup, which must sometimes do tricky things like reading
from ".git/config" even when we have not set up the
repository.

As a preparatory step to handling these cases better, let's
switch back to using the callback interface, which gives us
more control.

Note that this is essentially a revert of 586f414 (pager.c:
replace `git_config()` with `git_config_get_value()`,
2014-08-07), but with some minor style fixups and
modernizations.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pager.c