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

Re: [PATCH] Allow multiple tag and branch directories in git-svnimport

From
Stefan Sperling <stsp@elego.de>
Date
Aug 22, 2007, 10:24 UTC
Message-ID
<20070822102415.GA24305@jack.stsp.lan>
In-Reply-To
<86wsvook5s.fsf@blue.stonehenge.com>
On Tue, Aug 21, 2007 at 10:46:23AM -0700, Randal L. Schwartz wrote:
Show 9 quoted lines
> Stefan> Ouch, just noticed it's a bad idea to try to initialise
> Stefan> an array with a scalar. Sorry :-/
> 
> That's completely normal.  Perl predictably promotes the single scalar to an
> array of one element.  I wouldn't have even noticed it in a detailed code
> review, since it's so normal to do that.
> 
> In fact, the parens that you added do *not* make it a list.  The parens
> are purely for precedence
> So, your parens are not only uncommon, they are also completely ineffective,
> similar to replacing 2 + 3 with (2) + (3) :)

Thanks for clarifying. Prior to hacking on git-svnimport my perl "skills" (if any) were strictly read-only. So I'm quite a noob wrt perl. Feel free to nit the patch further :)

-- 
Stefan Sperling <stsp@elego.de>                 Software Developer
elego Software Solutions GmbH                            HRB 77719
Gustav-Meyer-Allee 25, Gebaeude 12        Tel:  +49 30 23 45 86 96 
13355 Berlin                              Fax:  +49 30 23 45 86 95
http://www.elego.de                 Geschaeftsfuehrer: Olaf Wagner
Previous: Randal L. Schwartz
Message 4 of 4 in “Allow multiple tag and branch directories in git-svnimport”
  1. Allow multiple tag and branch directories in git-svnimportStefan Sperling, Aug 21, 2007
  2. Stefan SperlingAug 21, 2007
  3. Randal L. SchwartzAug 21, 2007
  4. Stefan SperlingAug 22, 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.