git-config: collect values instead of immediately printing
commit7acdd6f0bc27bba37591e2d5fc2ca84e2af13ce4
authorJeff King <peff@peff.net>
Tue, 23 Oct 2012 19:51:50 +0000 (23 15:51 -0400)
committerJeff King <peff@peff.net>
Wed, 24 Oct 2012 07:36:54 +0000 (24 03:36 -0400)
tree556bdc5a32f9eec09d345df1adeeeaf9778bf9d2
parent97ed50f93ba592b50278a8161282e862cb87b4c0
git-config: collect values instead of immediately printing

This is a refactor that will allow us to more easily tweak
the behavior for multi-valued variables, and it will
ultimately allow us to remove a lot git-config's custom code
in favor of the regular git_config code.

It does mean we're no longer streaming, and we're storing
more in memory for the --get-all case, but in practice it is
a tiny amount of data, and the results are instantaneous.

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