git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Jeff King <peff@peff.net>
Date
Mar 21, 2014, 05:19 UTC
Message-ID
<20140321051941.GA31161@sigill.intra.peff.net>
In-Reply-To
<loom.20140320T181941-0@post.gmane.org>
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
Previous: Tanay Abhra
Message 2 of 2 in “[GSoC] Inquiry about writing config file to disk”
  1. Tanay AbhraMar 20, 2014
  2. Jeff KingMar 21, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.