config: create a function to format section headers
authorSahil Dua <redacted>
Sun, 18 Jun 2017 21:16:31 +0000 (23:16 +0200)
committerJunio C Hamano <redacted>
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 <redacted>
Signed-off-by: Ramsay Jones <redacted>
Signed-off-by: Sahil Dua <redacted>
Signed-off-by: Junio C Hamano <redacted>
config.c
git clone https://git.99rst.org/PROJECT