Re: [PATCH 2/3] git-svn: Make it scream by minimizing temp files

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Wong
Date: Monday, August 11, 2008 - 8:14 pm

Marcus Griep <marcus@griep.us> wrote:
  

The above is dead code now that we're using the versions in Git::,
right?


Why create a temporary variable? (and break the sacred 80-column limit).


I missed this before, but $tmp_fh->filename doesn't interpolate correctly.

("write ${\$tmp_fh->filename}: $!\n")
or
("write ", $tmp_fh->filename, ": $!\n") works.

I believe the latter form is more idiomatic so we should probably use
that...

-- 
Eric Wong
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/3] git-svn and temporary file improvements, Marcus Griep, (Mon Aug 11, 8:53 am)
Re: [PATCH 2/3] git-svn: Make it scream by minimizing temp ..., Eric Wong, (Mon Aug 11, 8:14 pm)
[PATCH] Git.pm: require Perl 5.6.1, Lea Wiemann, (Wed Aug 13, 3:30 pm)