Skip to content

Commit

Permalink
gitweb: feed generator metadata
Browse files Browse the repository at this point in the history
Add <generator> tag to RSS and Atom feed. Versioning info (gitweb/git
core versions, separated by a literal slash) is stored in the
appropriate attribute for the Atom feed, and in the tag content for the
RSS feed.

Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Giuseppe Bilotta authored and Junio C Hamano committed Jan 28, 2009
1 parent 1ba68ce commit ad59a7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -6085,6 +6085,7 @@ sub git_feed {
"<link>$alt_url</link>\n" .
"</image>\n";
}
print "<generator>gitweb v.$version/$git_version</generator>\n";
} elsif ($format eq 'atom') {
print <<XML;
<feed xmlns="http://www.w3.org/2005/Atom">
Expand All @@ -6111,6 +6112,7 @@ sub git_feed {
} else {
print "<updated>$latest_date{'iso-8601'}</updated>\n";
}
print "<generator version='$version/$git_version'>gitweb</generator>\n";
}

# contents
Expand Down

0 comments on commit ad59a7a

Please sign in to comment.