]> granicus.if.org Git - git/commit
read-cache.c: replace `git_config()` with `git_config_get_*()` family
authorTanay Abhra <tanayabh@gmail.com>
Thu, 7 Aug 2014 16:21:18 +0000 (09:21 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 7 Aug 2014 20:33:26 +0000 (13:33 -0700)
commitb27a5720996172fbb2cc809f88f4eea09b5bbc42
treef9bea2c098bdc64016ffd22e3604ea84c8e7f33a
parent6881f0ccb4365d1beb1673f740952064d204bd50
read-cache.c: replace `git_config()` with `git_config_get_*()` family

Use `git_config_get_*()` family instead of `git_config()` to take
advantage of the config-set API which provides a cleaner control flow.

Use an intermediate value, as `version` can not be used directly in
git_config_get_int() due to incompatible type.

Signed-off-by: Tanay Abhra <tanayabh@gmail.com>
Reviewed-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
read-cache.c