Re: [PATCH] git-svn: handle leading/trailing whitespace from svnsync revprops

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Junio C Hamano <gitster@...>
Cc: Dennis Schridde <devurandom@...>, <git@...>
Date: Saturday, January 12, 2008 - 5:12 am

Junio C Hamano <gitster@pobox.com> wrote:

The statements are not equivalent, however.  I'd have to add

	$var = $1;

too, because I needed to extract what was inside the ( ) since the '$'
doesn't catch the trailing newline, either.  I also couldn't find any of
the /sm, /m, /s switches useful for making '$' not accept the trailing
newline, either.

I also consider the "or die " part of the line to be uninteresting,
and would rather not waste extra space on it.


Good points, I've been mindlessly taking "interesting" things from other
Perl code I've seen over the years and using it in my own without
thinking about it too hard :x

I'll avoid them in the future.  Unfortunately, Git.pm also suffers from
this as well.

-- 
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:
Odd number of elements in anonymous hash, Dennis Schridde, (Tue Jan 8, 12:38 pm)
Re: Odd number of elements in anonymous hash, Junio C Hamano, (Tue Jan 8, 1:21 pm)
Re: Odd number of elements in anonymous hash, Eric Wong, (Wed Jan 9, 6:58 pm)
Re: Odd number of elements in anonymous hash, Dennis Schridde, (Tue Jan 8, 1:30 pm)
Re: Odd number of elements in anonymous hash, Eric Wong, (Thu Jan 10, 4:38 am)
Re: Odd number of elements in anonymous hash, Dennis Schridde, (Thu Jan 10, 7:04 am)
Re: Odd number of elements in anonymous hash, Dennis Schridde, (Thu Jan 10, 1:13 pm)
Re: Odd number of elements in anonymous hash, Junio C Hamano, (Thu Jan 10, 4:08 pm)
Re: Odd number of elements in anonymous hash, Dennis Schridde, (Thu Jan 10, 5:13 pm)
Re: Odd number of elements in anonymous hash, Junio C Hamano, (Thu Jan 10, 5:45 pm)
Re: [PATCH] git-svn: handle leading/trailing whitespace from..., Eric Wong, (Sat Jan 12, 5:12 am)