Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
gitweb: Use author_epoch for pubdate in gitweb feeds
author
Jakub Narebski
<jnareb@gmail.com>
Sat, 25 Nov 2006 14:54:34 +0000
(15:54 +0100)
committer
Junio C Hamano
<junkio@cox.net>
Sat, 25 Nov 2006 21:54:32 +0000
(13:54 -0800)
Use creation date (author_epoch) instead of former commit date
(committer_epoch) as publish date in gitweb feeds (RSS, Atom).
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
ab23c19
)
diff --git
a/gitweb/gitweb.perl
b/gitweb/gitweb.perl
index fb7026d321414557636ab9ac98432e71d572b038..1c5b85443b33c16920fa0af83ff27629051ddd12 100755
(executable)
--- a/
gitweb/gitweb.perl
+++ b/
gitweb/gitweb.perl
@@
-4201,7
+4201,7
@@
sub git_feed {
}
if (defined($revlist[0])) {
%latest_commit = parse_commit($revlist[0]);
}
if (defined($revlist[0])) {
%latest_commit = parse_commit($revlist[0]);
- %latest_date = parse_date($latest_commit{'
committe
r_epoch'});
+ %latest_date = parse_date($latest_commit{'
autho
r_epoch'});
print $cgi->header(
-type => $content_type,
-charset => 'utf-8',
print $cgi->header(
-type => $content_type,
-charset => 'utf-8',
@@
-4294,10
+4294,10
@@
sub git_feed {
my $commit = $revlist[$i];
my %co = parse_commit($commit);
# we read 150, we always show 30 and the ones more recent than 48 hours
my $commit = $revlist[$i];
my %co = parse_commit($commit);
# we read 150, we always show 30 and the ones more recent than 48 hours
- if (($i >= 20) && ((time - $co{'
committe
r_epoch'}) > 48*60*60)) {
+ if (($i >= 20) && ((time - $co{'
autho
r_epoch'}) > 48*60*60)) {
last;
}
last;
}
- my %cd = parse_date($co{'
committe
r_epoch'});
+ my %cd = parse_date($co{'
autho
r_epoch'});
# get list of changed files
open $fd, "-|", git_cmd(), "diff-tree", '-r', @diff_opts,
# get list of changed files
open $fd, "-|", git_cmd(), "diff-tree", '-r', @diff_opts,