Skip to content

Commit 0cf3128

Browse files
Oblomovgitster
authored andcommitted
gitweb: rss channel date
The RSS 2.0 specifications defines not one but _two_ dates for its channel element! Woohoo! Luckily, it seems that consensus seems to be that if both are present they should be equal, except for some very obscure and discouraged cases. Since lastBuildDate would make more sense for us and pubDate seems to be the most commonly used, we defined both and make them equal. Signed-off-by: Giuseppe Bilotta <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3ac109a commit 0cf3128

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gitweb/gitweb.perl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6087,6 +6087,10 @@ sub git_feed {
60876087
"<link>$alt_url</link>\n" .
60886088
"</image>\n";
60896089
}
6090+
if (%latest_date) {
6091+
print "<pubDate>$latest_date{'rfc2822'}</pubDate>\n";
6092+
print "<lastBuildDate>$latest_date{'rfc2822'}</lastBuildDate>\n";
6093+
}
60906094
print "<generator>gitweb v.$version/$git_version</generator>\n";
60916095
} elsif ($format eq 'atom') {
60926096
print <<XML;

0 commit comments

Comments
 (0)