]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: Fix handling of $file_name in feed generation
authorJakub Narebski <redacted>
Fri, 3 Aug 2007 17:50:42 +0000 (19:50 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:12 +0000 (00:07 -0400)
The commit b6093a5c, by Robert Fitzsimons:
  "gitweb: Change atom, rss actions to use parse_commits."
forgot to pass $file_name parameter to parse_commits subroutine.

If git_feed is provided a file name, it ought to show only the history
affecting that file or a directory.  The title was being set
correctly, but all commits from history were being shown.

Signed-off-by: Steven Walter <redacted>
Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl

index 84293a5d12175cb834304954bc1d17f5ee4e73164c06f530b40c265652c92ea4..74edff9a9686f21f2f83eb584fceb07be085ee5062807e1ce96a1b36d7b35617 100755 (executable)
@@ -5367,7 +5367,7 @@ sub git_feed {
 
        # log/feed of current (HEAD) branch, log of given branch, history of file/directory
        my $head = $hash || 'HEAD';
-       my @commitlist = parse_commits($head, 150);
+       my @commitlist = parse_commits($head, 150, 0, undef, $file_name);
 
        my %latest_commit;
        my %latest_date;
This page took 0.264764 seconds and 4 git commands to generate.