From: Giuseppe Bilotta Date: Mon, 26 Jan 2009 11:50:12 +0000 (+0100) Subject: gitweb: feed generator metadata X-Git-Tag: v1.6.2-rc0~75 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/ad59a7a359ffa3bf0903f1d35ccfd3910f9bbef2 gitweb: feed generator metadata Add 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 Signed-off-by: Junio C Hamano --- diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index f8a5d2e077..3d94f50cff 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -6085,6 +6085,7 @@ sub git_feed { "$alt_url\n" . "\n"; } + print "gitweb v.$version/$git_version\n"; } elsif ($format eq 'atom') { print < @@ -6111,6 +6112,7 @@ sub git_feed { } else { print "$latest_date{'iso-8601'}\n"; } + print "gitweb\n"; } # contents