From: Jakub Narebski <jnareb@gmail.com>
To: Eric Wong <normalperson@yhbt.net>
Cc: Johannes Schindelin <Johannes.Schindelin@gmx.de>, git@vger.kernel.org
Subject: Re: git svn forking an awful lot of "git config"s
Date: Wed, 20 Feb 2008 15:31:28 -0800 (PST) [thread overview]
Message-ID: <m3ejb7tdbo.fsf@localhost.localdomain> (raw)
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
next prev parent reply other threads:[~2008-02-20 23:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-20 15:27 git svn forking an awful lot of "git config"s Johannes Schindelin
2008-02-20 22:39 ` Eric Wong
2008-02-20 23:31 ` Jakub Narebski [this message]
2008-02-20 23:57 ` Nagy Balázs
2008-02-21 0:18 ` Johannes Schindelin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3ejb7tdbo.fsf@localhost.localdomain \
--to=jnareb@gmail.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=normalperson@yhbt.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.