git-config: use git_config_with_options
commite89558988305c3e912c0674faeb814e44563f7fd
authorJeff King <peff@peff.net>
Tue, 23 Oct 2012 22:00:41 +0000 (23 18:00 -0400)
committerJeff King <peff@peff.net>
Wed, 24 Oct 2012 07:36:58 +0000 (24 03:36 -0400)
treef90b1e93906bb0a3dc1b9f015fa6471b20f748ef
parent00b347d3aa094948d58dd1303aef7ba97ff09519
git-config: use git_config_with_options

The git-config command has always implemented its own file
lookup and parsing order. This was necessary because its
duplicate-entry handling did not match the way git's
internal callbacks worked. Now that this is no longer the
case, we are free to reuse the existing parsing code.

This saves us a few lines of code, but most importantly, it
means that the logic for which files are examined is
contained only in one place and cannot diverge.

Signed-off-by: Jeff King <peff@peff.net>
builtin/config.c