]> git.ipfire.org Git - thirdparty/git.git/commit - config.c
config: factor out config file stack management
authorHeiko Voigt <hvoigt@hvoigt.net>
Sat, 11 May 2013 13:18:52 +0000 (15:18 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Jul 2013 16:34:57 +0000 (09:34 -0700)
commitca4b5de28bad7d50b882794124ca4e57044a1cba
tree64a66c478baaad04ff0c1502eda4fb31a5f42fdf
parentb387c77b12953d543bf5efc3825b5be26d753f9c
config: factor out config file stack management

Because a config callback may start parsing a new file, the
global context regarding the current config file is stored
as a stack. Currently we only need to manage that stack from
git_config_from_file. Let's factor it out to allow new
sources of config data.

Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.c