• J
    git_config_with_options: drop "found" counting · c72ee44b
    Jeff King 提交于
    Prior to 1f2baa78 (config: treat non-existent config files as
    empty, 2010-10-21), we returned an error if any config files
    were missing. That commit made this a non-error, but
    returned the number of sources found, in case any caller
    wanted to distinguish this case.
    
    In the past 5+ years, no caller has; the only two places
    which bother to check the return value care only about the
    error case.  Let's drop this code, which complicates the
    function. Similarly, let's drop the "found anything" return
    from git_config_from_parameters, which was present only to
    support this (and similarly has never had other callers care
    for the past 5+ years).
    
    Note that we do need to update a comment in one of the
    callers, even though the code immediately below it doesn't
    care about this case.
    Signed-off-by: NJeff King <peff@peff.net>
    Signed-off-by: NJunio C Hamano <gitster@pobox.com>
    c72ee44b
config.c 57.0 KB