Skip to content

Commit ad59a7a

Browse files
Oblomovgitster
authored andcommitted
gitweb: feed generator metadata
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1ba68ce commit ad59a7a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gitweb/gitweb.perl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6085,6 +6085,7 @@ sub git_feed {
60856085
"<link>$alt_url</link>\n" .
60866086
"</image>\n";
60876087
}
6088+
print "<generator>gitweb v.$version/$git_version</generator>\n";
60886089
} elsif ($format eq 'atom') {
60896090
print <<XML;
60906091
<feed xmlns="http://www.w3.org/2005/Atom">
@@ -6111,6 +6112,7 @@ sub git_feed {
61116112
} else {
61126113
print "<updated>$latest_date{'iso-8601'}</updated>\n";
61136114
}
6115+
print "<generator version='$version/$git_version'>gitweb</generator>\n";
61146116
}
61156117

61166118
# contents

0 commit comments

Comments
 (0)