Re: [PATCH 2/4] gitweb: show notes in shortlog view

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jakub Narebski
Date: Friday, February 5, 2010 - 5:18 pm

On Thu, 4 Feb 2010, Giuseppe Bilotta wrote:


Is it RFC?

Why it is only for 'shortlog' view, and not also for 'history' which is
also shortlog-like view?  Or is there reason why it is not present for
'history' view?


Signoff?


Not all web browsers support ':before' pseudo-element, and 'content'
(pseudo-)property.

Not all web browsers support 'data:' URI schema in CSS; also such image
cannot be cached (on the other hand it doesn't require extra TCP 
connection on first access, and CSS file is cached anyway).

On the other hand adding extra images to gitweb would probably require
additional (yet another) build time parameter to tell where static
images are (besides logo and favicon).

So perhaps it is good solution, at least for a first attempt.

[...]

Why not use 'my $notes = shift;', and later '%$notes'?


Perhaps $return or $result would be a better name, to better distinguish
it from visually similar $ref (see $ref vs $res);


You can use different delimiter than / to avoid 'leaning toothpick'
syndrome, e.g.: $ref =~ s!^refs/notes/!!;


Probably would want

   			$ret .= esc_html($line) . "<br/>\n";

here.  Or do we want single string here?


Also, do you want/need final <br>?  If not, perhaps

   		join("<br/>", map { esc_html($_) } split(/\n/, $text);

would be a better solution (you can always add final "<br/>" later)?


Nice.

-- 
Jakub Narebski
Poland
--
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/4] gitweb: preliminary notes support, Giuseppe Bilotta, (Thu Feb 4, 9:18 am)
[PATCH 1/4] gitweb: notes feature, Giuseppe Bilotta, (Thu Feb 4, 9:18 am)
[PATCH 2/4] gitweb: show notes in shortlog view, Giuseppe Bilotta, (Thu Feb 4, 9:18 am)
[PATCH 3/4] gitweb: show notes in log, Giuseppe Bilotta, (Thu Feb 4, 9:18 am)
[PATCH 4/4] gitweb: show notes in commit(diff) view, Giuseppe Bilotta, (Thu Feb 4, 9:18 am)
Re: [PATCH 1/4] gitweb: notes feature, Junio C Hamano, (Thu Feb 4, 9:33 am)
Re: [PATCH 1/4] gitweb: notes feature, Junio C Hamano, (Thu Feb 4, 9:46 am)
Re: [PATCH 1/4] gitweb: notes feature, Jakub Narebski, (Thu Feb 4, 10:21 am)
Re: [PATCH 1/4] gitweb: notes feature, Giuseppe Bilotta, (Thu Feb 4, 1:08 pm)
Re: [PATCH 1/4] gitweb: notes feature, Junio C Hamano, (Thu Feb 4, 2:03 pm)
Re: [PATCH 1/4] gitweb: notes feature, Junio C Hamano, (Thu Feb 4, 2:07 pm)
Re: [PATCH 1/4] gitweb: notes feature, Jakub Narebski, (Thu Feb 4, 4:20 pm)
Re: [PATCH 1/4] gitweb: notes feature, Giuseppe Bilotta, (Thu Feb 4, 4:38 pm)
Re: [PATCH 1/4] gitweb: notes feature, Jakub Narebski, (Thu Feb 4, 5:44 pm)
Re: [PATCH 1/4] gitweb: notes feature, Junio C Hamano, (Thu Feb 4, 5:55 pm)
Re: [PATCH 1/4] gitweb: notes feature, Giuseppe Bilotta, (Fri Feb 5, 1:42 am)
Re: [PATCH 1/4] gitweb: notes feature, Johan Herland, (Fri Feb 5, 3:36 am)
Re: [PATCH 1/4] gitweb: notes feature, Junio C Hamano, (Fri Feb 5, 9:10 am)
Re: [PATCH 1/4] gitweb: notes feature, Giuseppe Bilotta, (Fri Feb 5, 2:31 pm)
Re: [PATCH 1/4] gitweb: notes feature, Junio C Hamano, (Fri Feb 5, 3:31 pm)
Re: [PATCH 1/4] gitweb: notes feature, Jakub Narebski, (Fri Feb 5, 4:44 pm)
Re: [PATCH 2/4] gitweb: show notes in shortlog view, Jakub Narebski, (Fri Feb 5, 5:18 pm)
Re: [PATCH 1/4] gitweb: notes feature, Giuseppe Bilotta, (Sat Feb 6, 1:16 am)
Re: [PATCH 1/4] gitweb: notes feature, Giuseppe Bilotta, (Sat Feb 6, 2:02 am)
Re: [PATCH 2/4] gitweb: show notes in shortlog view, Giuseppe Bilotta, (Sat Feb 6, 2:24 am)
Re: [PATCH 3/4] gitweb: show notes in log, Jakub Narebski, (Sat Feb 6, 5:57 am)
Re: [PATCH 3/4] gitweb: show notes in log, Giuseppe Bilotta, (Sat Feb 6, 6:14 am)
Re: [PATCH 4/4] gitweb: show notes in commit(diff) view, Jakub Narebski, (Sat Feb 6, 6:16 am)
Re: [PATCH 4/4] gitweb: show notes in commit(diff) view, Giuseppe Bilotta, (Sat Feb 6, 7:15 am)
Re: [PATCH 4/4] gitweb: show notes in commit(diff) view, Jakub Narebski, (Sat Feb 6, 7:34 am)
Re: [PATCH 4/4] gitweb: show notes in commit(diff) view, Giuseppe Bilotta, (Sat Feb 6, 9:13 am)
Re: [PATCH 3/4] gitweb: show notes in log, Jakub Narebski, (Sat Feb 6, 2:47 pm)
Re: [PATCH 4/4] gitweb: show notes in commit(diff) view, Jakub Narebski, (Sat Feb 6, 2:50 pm)
Re: [PATCH 1/4] gitweb: notes feature, Jakub Narebski, (Sat Feb 6, 3:14 pm)
Re: [PATCH 4/4] gitweb: show notes in commit(diff) view, Giuseppe Bilotta, (Sat Feb 6, 3:17 pm)
Re: [PATCH 1/4] gitweb: notes feature, Giuseppe Bilotta, (Sat Feb 6, 3:58 pm)
Re: [PATCH 1/4] gitweb: notes feature, Jakub Narebski, (Sat Feb 6, 6:20 pm)
Re: [PATCH 1/4] gitweb: notes feature, Jakub Narebski, (Sat Feb 6, 6:38 pm)
Re: [PATCH 1/4] gitweb: notes feature, Johan Herland, (Sat Feb 6, 6:48 pm)
Re: [PATCH 1/4] gitweb: notes feature, Giuseppe Bilotta, (Sun Feb 7, 3:57 am)
Re: [PATCH 1/4] gitweb: notes feature, Jakub Narebski, (Sun Feb 7, 4:08 am)
Re: [PATCH 1/4] gitweb: notes feature, Jakub Narebski, (Sun Feb 7, 4:11 am)
Re: [PATCH 1/4] gitweb: notes feature, Giuseppe Bilotta, (Sun Feb 7, 4:14 am)
Re: [PATCH 1/4] gitweb: notes feature, Jakub Narebski, (Sun Feb 7, 5:41 am)
Re: [PATCH 1/4] gitweb: notes feature, Junio C Hamano, (Sun Feb 7, 11:38 am)
Re: [PATCH 1/4] gitweb: notes feature, Giuseppe Bilotta, (Sun Feb 7, 1:11 pm)
Re: [PATCH 1/4] gitweb: notes feature, Jakub Narebski, (Sun Feb 7, 2:08 pm)