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

Re: [PATCH] Git.pm: Don't return 'undef' in vector context.

From
Jakub Narebski <jnareb@gmail.com>
Date
Nov 16, 2007, 08:43 UTC
Message-ID
<fhjl70$db4$1@ger.gmane.org>
In-Reply-To
<473D3593.9080806@zwell.net>
[Cc: Dan Zwell <dzwell@gmail.com>, Petr Baudis <pasky@suse.cz>,
     git@vger.kernel.org]
Dan Zwell wrote:
> Previously, the Git->repository()->config('non-existent.key')
> evaluated to as true in a vector context. Return an empty list
> instead.
Nice.

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?

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Sebastian HarlNext: Dan Zwell
Message 6 of 8 in “Git.pm: Don't return 'undef' in vector context.”
  1. Git.pm: Don't return 'undef' in vector context.Dan Zwell, Nov 16, 2007
  2. Junio C HamanoNov 16, 2007
  3. Dan ZwellNov 16, 2007
  4. Junio C HamanoNov 17, 2007
  5. Sebastian HarlNov 16, 2007
  6. Jakub NarebskiNov 16, 2007
  7. Dan ZwellNov 17, 2007
  8. Jakub NarebskiNov 17, 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.