From: Dan Zwell <dzwell@gmail.com>
To: Jakub Narebski <jnareb@gmail.com>
Cc: Dan Zwell <dzwell@gmail.com>, Petr Baudis <pasky@suse.cz>,
Git Mailing List <git@vger.kernel.org>
Subject: Re: [PATCH] Git.pm: Don't return 'undef' in vector context.
Date: Fri, 16 Nov 2007 21:20:40 -0600 [thread overview]
Message-ID: <473E5E08.2090609@zwell.net> (raw)
In-Reply-To: <fhjl70$db4$1@ger.gmane.org>
Jakub Narebski wrote:
>
> By the way, what do you think about changing Git.pm config handling
> to the 'eager' one used currently by gitweb, namely reading all the
> config to hash, and later getting config values from hash instead of
> calling git-config? Or at least make it an option?
>
That seems appropriate, though it may be a slight trade-off between
complexity and efficiency. I don't think it's strictly necessary, at
least for git-add--interactive. My experience is that the nine calls to
config() (that I am adding) do not slow down the program from a user
perspective (though I haven't tested on a slower computer).
The big reason to do it would be if you wanted to convert gitweb to use
the standard config() call from Git.pm. Because right now, config()
isn't efficient, but it probably doesn't need to be.
Dan
next prev parent reply other threads:[~2007-11-17 3:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-16 6:15 [PATCH] Git.pm: Don't return 'undef' in vector context Dan Zwell
2007-11-16 6:39 ` Junio C Hamano
2007-11-16 8:00 ` Dan Zwell
2007-11-17 0:39 ` Junio C Hamano
2007-11-16 12:47 ` Sebastian Harl
2007-11-16 8:43 ` Jakub Narebski
2007-11-17 3:20 ` Dan Zwell [this message]
2007-11-17 15:19 ` Jakub Narebski
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=473E5E08.2090609@zwell.net \
--to=dzwell@gmail.com \
--cc=git@vger.kernel.org \
--cc=jnareb@gmail.com \
--cc=pasky@suse.cz \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).