Re: [PATCH 07/11] builtin/gc.c: replace `git_config()` with `git_config_get_*()` family

2014-08-04 Thread Matthieu Moy
Tanay Abhra writes: > + if (approxidate(prune_expire) >= now) { > + error(_("Invalid %s: '%s'"), "gc.pruneexpire", > prune_expire); > + git_die_config("gc.pruneexpire"); > + } That is a case where th

[PATCH 07/11] builtin/gc.c: replace `git_config()` with `git_config_get_*()` family

2014-08-04 Thread Tanay Abhra
Use `git_config_get_*()` family instead of `git_config()` to take advantage of the config-set API which provides a cleaner control flow. Signed-off-by: Tanay Abhra --- builtin/gc.c | 51 --- 1 file changed, 20 insertions(+), 31 deletions(-) diff -