Skip to content

Commit cf6ead0

Browse files
521337gitster
authored andcommitted
gitweb: rss/atom change published/updated date to committer date
The author date is used for published/updated date in the rss/atom feed stream. Change it to the committer date that reflects the "published/updated" definition better and makes rss/atom feeds more linear. Gitlab/Github rss/atom feeds use the committer date. Additionally, to be consistent, also use the committer date to determine the date of the last commit to send in the feed instead of the author date. Signed-off-by: Jesús Ariel Cabello Mateos <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent dbecc61 commit cf6ead0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gitweb/gitweb.perl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8324,10 +8324,10 @@ sub git_feed {
83248324
my %co = %{$commitlist[$i]};
83258325
my $commit = $co{'id'};
83268326
# we read 150, we always show 30 and the ones more recent than 48 hours
8327-
if (($i >= 20) && ((time - $co{'author_epoch'}) > 48*60*60)) {
8327+
if (($i >= 20) && ((time - $co{'committer_epoch'}) > 48*60*60)) {
83288328
last;
83298329
}
8330-
my %cd = parse_date($co{'author_epoch'}, $co{'author_tz'});
8330+
my %cd = parse_date($co{'committer_epoch'}, $co{'committer_tz'});
83318331

83328332
# get list of changed files
83338333
open my $fd, "-|", git_cmd(), "diff-tree", '-r', @diff_opts,

0 commit comments

Comments
 (0)