Skip to contentSkip to conversation

Inquiry about writing config file to disk

GSoC Tanay Abhra 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Hi,

I have gone through commit.c, builtin/commit.c and api-config.txt but one thing I cannot find is which functions handle writing config file to disk after adding a new variable,value pair(for example git config my.option true) . It is also marked TODO on the api-config.txt file. Can somebody help me , I just want the starting function and will trace the function calls after that.

Regards,
Tanay Abhra.

#1 lore raw
Quoted 6 lines · Tanay Abhra

I have gone through commit.c, builtin/commit.c and api-config.txt but one thing I cannot find is which functions handle writing config file to disk after adding a new variable,value pair(for example git config my.option true) . It is also marked TODO on the api-config.txt file. Can somebody help me , I just want the starting function and will trace the function calls after that.

Try starting in cmd_config (in builtin/config.c), the main entry point for running "git config", and you should be able to trace it from there.

The main logic ends up in the git_config_set_* functions.

-Peff