{"thread":{"id":"36252","subject":"[GSoC] Inquiry about writing config file to disk","startedAt":"2014-03-20T17:25:22Z","lastAt":"2014-03-21T05:19:41Z","messageCount":2,"participants":["Tanay Abhra","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"237185","messageId":"loom.20140320T181941-0@post.gmane.org","threadId":"36252","inReplyTo":null,"subject":"[GSoC] Inquiry about writing config file to disk","fromName":"Tanay Abhra","fromEmail":"tanayabh@gmail.com","sentAt":"2014-03-20T17:25:22Z","receivedAt":"2014-03-20T17:25:22Z","isPatch":false,"sender":{"key":"tanayabh@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2097229?v=4"},"body":"Hi,\n\nI have gone through commit.c, builtin/commit.c and api-config.txt but one\nthing I cannot find is which functions handle writing config file to disk\nafter adding a new variable,value pair(for example git config my.option\ntrue) . It is also marked TODO on the api-config.txt file. Can somebody help\nme , I just want the starting function and will trace the function calls\nafter that.\n\nRegards,\nTanay Abhra.\n"},{"id":"237261","messageId":"20140321051941.GA31161@sigill.intra.peff.net","threadId":"36252","inReplyTo":"loom.20140320T181941-0@post.gmane.org","subject":"Re: [GSoC] Inquiry about writing config file to disk","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2014-03-21T05:19:41Z","receivedAt":"2014-03-21T05:19:41Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Thu, Mar 20, 2014 at 05:25:22PM +0000, Tanay Abhra wrote:\n\n> I have gone through commit.c, builtin/commit.c and api-config.txt but one\n> thing I cannot find is which functions handle writing config file to disk\n> after adding a new variable,value pair(for example git config my.option\n> true) . It is also marked TODO on the api-config.txt file. Can somebody help\n> me , I just want the starting function and will trace the function calls\n> after that.\n\nTry starting in cmd_config (in builtin/config.c), the main entry point\nfor running \"git config\", and you should be able to trace it from there.\n\nThe main logic ends up in the git_config_set_* functions.\n\n-Peff\n"}]}