Skip to content
  • Jeff King's avatar
    pager: use callbacks instead of configset · 6a1e1bc0
    Jeff King authored and Junio C Hamano's avatar Junio C Hamano committed
    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 586f414a
    
     (pager.c:
    replace `git_config()` with `git_config_get_value()`,
    2014-08-07), but with some minor style fixups and
    modernizations.
    
    Signed-off-by: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    6a1e1bc0