]> git.ipfire.org Git - thirdparty/git.git/commit - config.c
config: create a function to format section headers
authorSahil Dua <sahildua2305@gmail.com>
Sun, 18 Jun 2017 21:16:31 +0000 (23:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 19 Jun 2017 04:47:47 +0000 (21:47 -0700)
commit5463caab15fb795da2aab01827419b094146d1c4
tree5225efd48f9d7373b34eacd437b11aac075f7c9d
parent41dd4330a1210003bd702ec4a9301ed68e60864d
config: create a function to format section headers

Factor out the logic which creates section headers in the config file,
e.g. the 'branch.foo' key will be turned into '[branch "foo"]'.

This introduces no function changes, but is needed for a later change
which adds support for copying branch sections in the config file.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Sahil Dua <sahildua2305@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.c