]> granicus.if.org Git - git/commit
config: factor out set_config_source_file()
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Thu, 27 Dec 2018 15:56:10 +0000 (16:56 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 10 Jan 2019 21:40:10 +0000 (13:40 -0800)
commita12c1ff3a57b70116ea887cfac84b0d6f20c9e72
tree136a561b2c47983ed00be69ad1657c0896d553e8
parent27382d073811bf6aed272e7c6a5cb32b5ef544c0
config: factor out set_config_source_file()

In the next patch, "config" is taught to move some config variables
from one file to another. We need to specify two locations, source and
destination, and the plan is reusing the same --global/--local/...
option. Factor this code out for reuse later.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/config.c