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

Re: git svn forking an awful lot of "git config"s

From
Jakub Narebski <jnareb@gmail.com>
Date
Feb 20, 2008, 23:31 UTC
Message-ID
<m3ejb7tdbo.fsf@localhost.localdomain>
In-Reply-To
<20080220223953.GA32663@hand.yhbt.net>
Eric Wong <normalperson@yhbt.net> writes:
> Many months ago, I thought about implementing a transparent caching layer
> in Git.pm to work with git configs.  Of course, that requires
> cooperation from all readers/writers within the process...  Done
> correctly, it would help more than just git-svn. too.
Take a look how gitweb uses "git config -z -l" to read all config
in one go, and save it to hash for later use, lazily.
 
> I think I had this idea around the time we made git-config output Perl
> hashes and arrays.

This is an alternate solution, better for simple scripts and one-off scripts (you don't need to write "git config -z -l" parser), but I think that additional eval might be not good for performance.

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Eric WongNext: Nagy Balázs
Message 3 of 5 in “git svn forking an awful lot of "git config"s”
  1. Johannes SchindelinFeb 20, 2008
  2. Eric WongFeb 20, 2008
  3. Jakub NarebskiFeb 20, 2008
  4. Nagy BalázsFeb 20, 2008
  5. Johannes SchindelinFeb 21, 2008

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.