Thread (32 messages) flat view 32 messages, 4 authors, 2016-06-15

Re: [PATCH 4/4] gitweb: show notes in commit(diff) view

From: Jakub Narebski <hidden>
Date: 2016-06-15 22:48:11

Giuseppe Bilotta wrote:
2010/2/6 Jakub Narebski [off-list ref]:
quoted
On Thu, 4 Jan 2010, Giuseppe Bilotta wrote:
[...]
quoted
quoted
 # return all refs matching refs/notes/<globspecs> where the globspecs
 # are taken from the notes feature content.
 sub get_note_refs {
+     local $/ = "";
+
Why it is needed here?  Why you want to use empty lines as terminator
(which means reading whole paragraphs), while treating two or more
consecutive empty lines as a single empty line (according to
perlvar(1))?

If you want to slurp whole file, this should be

       local $/;

or more explicit

       local $/ = undef;
Ah, sorry, for some reason I thought "" was the default.
If you wanted to use default value, why set it at all?

-- 
Jakub Narebski
Poland
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help