Re: [PATCH 2/3] gitweb: Use "previous" header of git-blame -p in 'blame' view
From: Jakub Narebski <hidden> Date: 2016-06-15 22:47:03
On Fri, 10 July 2009, Jakub Narebski wrote:
+# if filename is surrounded in double quotes, it need to be unquoted
+sub unquote_maybe {
+ my $str = shift;
+
+ if ($str =~ /^"(.*)"$/) {
+ return unquote($1);
+ }
+ return $str;
+}
I'm sorry about that, but this is totally unnecessary, as
unquote == unquote_maybe (unquotes only when necessary).
--
Jakub Narebski
Poland