threads / discuss / 36252

[GSoC] Inquiry about writing config file to disk

Subject: [GSoC] Inquiry about writing config file to disk

## tl;dr

2 messages between Mar 20, 2014 and Mar 21, 2014.

replies: 1people: 2as markdown or json

Tanay Abhra· Mar 20, 2014, 17:25 UTC · lore
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.

Jeff King· Mar 21, 2014, 05:19 UTC · re: Tanay Abhra · lore

Re: [GSoC] Inquiry about writing config file to disk

On Thu, Mar 20, 2014 at 05:25:22PM +0000, Tanay Abhra wrote:
Show 6 quoted lines
> 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

← back to recent threads