gitweb: Make feed entries point to commitdiff view
authorFlorian La Roche <laroche@redhat.com>
Sun, 3 Feb 2008 11:38:46 +0000 (12:38 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Feb 2008 21:50:25 +0000 (13:50 -0800)
Change feeds entries (feeds items) from pointing (linking) to 'commit'
view to pointing to 'commitdiff' view.

First, feed entries have whatchanged-like list of files which were
modified in a commit, so 'commitdiff' view more naturally reflects
feed entry (is more naturally alternate / extended version of a feed
item). Second, this way the patches are shown directly and code review
is done more easily via watching feeds.

[jn: Rewritten commit message]

Signed-off-by: Florian La Roche <laroche@redhat.com>
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl
index ae2d05763fc2d41c9bffdad8809e4e370389412c..8ef2735c5857dd314318cae8839426543c34f8ee 100755 (executable)
@@ -5565,7 +5565,7 @@ sub git_feed {
                        or next;
 
                # print element (entry, item)
-               my $co_url = href(-full=>1, action=>"commit", hash=>$commit);
+               my $co_url = href(-full=>1, action=>"commitdiff", hash=>$commit);
                if ($format eq 'rss') {
                        print "<item>\n" .
                              "<title>" . esc_html($co{'title'}) . "</title>\n" .