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.
Showing with 59 additions and 54 deletions