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 <080ariel@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jesús Ariel Cabello Mateos committed
Jul 7, 2024 at 18:48 UTC
cf6ead095babb2df6fb24ee96f5237f8999a7179
1 file changed
+2
-2
gitweb/gitweb.perl
+2
-2
@@ -8324,10 +8324,10 @@ XML
8324
my %co = %{$commitlist[$i]};
8325
my $commit = $co{'id'};
8326
# 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)) {
8328
last;
8329
}
8330
- my %cd = parse_date($co{'author_epoch'}, $co{'author_tz'});
8330
+ my %cd = parse_date($co{'committer_epoch'}, $co{'committer_tz'});
8331
8332
# get list of changed files
8333
open my $fd, "-|", git_cmd(), "diff-tree", '-r', @diff_opts,