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

Re: StGIT and repo-config

From
CMCatalin Marinas <catalin.marinas@gmail.com>
Date
Jan 25, 2007, 23:45 UTC
Message-ID
<b0943d9e0701251545w1b34a0dcg545eeab08d767e38@mail.gmail.com>
In-Reply-To
<20070125225512.GF4083@nan92-1-81-57-214-146.fbx.proxad.net>
On 25/01/07, Yann Dirson <ydirson@altern.org> wrote:
> I'm trying to get StGIT to work with git's config information.
> Currently, the stgit.config stuff uses a generic ConfigParser, which
> I'm not sure is adequate for the work:

There are some drawbacks indeed and it currently reads the configs and transforms them slightly before passing them to ConfigParser. StGIT initially had its own config files (git config came a bit later).

It would be good to have this re-written. It is even better to use something like config.get('user.name') rather than config.get('user', 'name') as in ConfigParser.

What I'd like it to have is a single initial call to git-repo-config --list (in config_setup) and all the options cached in a dictionary (so that .git/config options would override the global ~/.gitconfig ones). The dictionary should also be pre-populated with the default values (only in memory, not going to the config file on disk).

For the options setting, it shouldn't probably need to use --global. As above, these options should be cached in the dictionary as well.

-- 
Catalin
Previous: Yann DirsonNext: Johannes Schindelin
Message 2 of 8 in “StGIT and repo-config”
  1. Yann DirsonJan 25, 2007
  2. Catalin MarinasJan 25, 2007
  3. Johannes SchindelinJan 25, 2007
  4. Yann DirsonJan 26, 2007
  5. Catalin MarinasJan 26, 2007
  6. Johannes SchindelinJan 26, 2007
  7. Yann DirsonJan 27, 2007
  8. Catalin MarinasJan 28, 2007

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.