summaryrefslogtreecommitdiff
path: root/pretty.c
diff options
context:
space:
mode:
authorLibravatar Antonio Ospite <ao2@ao2.it>2018-10-05 15:05:53 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-10-09 12:40:20 +0900
commit45f5ef3d77ec3d2465641cd219b2f3874fa72083 (patch)
tree96b51be4e78d111c2322387a67186bd57362e44e /pretty.c
parentsubmodule: add a print_config_from_gitmodules() helper (diff)
downloadtgif-45f5ef3d77ec3d2465641cd219b2f3874fa72083.tar.xz
submodule: factor out a config_set_in_gitmodules_file_gently function
Introduce a new config_set_in_gitmodules_file_gently() function to write config values to the .gitmodules file. This is in preparation for a future change which will use the function to write to the .gitmodules file in a more controlled way instead of using "git config -f .gitmodules". The purpose of the change is mainly to centralize the code that writes to the .gitmodules file to avoid some duplication. The naming follows git_config_set_in_file_gently() but the git_ prefix is removed to communicate that this is not a generic git-config API. Signed-off-by: Antonio Ospite <ao2@ao2.it> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pretty.c')
0 files changed, 0 insertions, 0 deletions