Photos
Blog
Projects
vanrenterghem.biz
projects
/
git.ikiwiki.info.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
85af97c
)
can't use --reverse with git log --follow
author
Joey Hess
<joey@gnu.kitenet.net>
Mon, 12 Oct 2009 03:07:31 +0000
(23:07 -0400)
committer
Joey Hess
<joey@gnu.kitenet.net>
Mon, 12 Oct 2009 03:36:06 +0000
(23:36 -0400)
Meh, git.
IkiWiki/Plugin/git.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/git.pm
b/IkiWiki/Plugin/git.pm
index e10283f59a5889802d218bf8d238301a20866562..9ecda4ffbcd03375e4799b4d2bc4aaafa70f28df 100644
(file)
--- a/
IkiWiki/Plugin/git.pm
+++ b/
IkiWiki/Plugin/git.pm
@@
-613,11
+613,14
@@
sub rcs_getctime ($) {
# Remove srcdir prefix
$file =~ s/^\Q$config{srcdir}\E\/?//;
# Remove srcdir prefix
$file =~ s/^\Q$config{srcdir}\E\/?//;
- my @raw_lines = run_or_die('git', 'log', '--
reverse', '--
follow',
+ my @raw_lines = run_or_die('git', 'log', '--follow',
'--pretty=raw', '--raw', '--abbrev=40', '--always', '-c',
'-r', '--', $file);
'--pretty=raw', '--raw', '--abbrev=40', '--always', '-c',
'-r', '--', $file);
- my $first = parse_diff_tree("", \@raw_lines);
- my $ctime = $first->{'author_epoch'};
+ my @ci;
+ while (my $parsed = parse_diff_tree("", \@raw_lines)) {
+ push @ci, $parsed;
+ }
+ my $ctime = $ci[$#ci]->{'author_epoch'};
debug("ctime for '$file': ". localtime($ctime));
return $ctime;
debug("ctime for '$file': ". localtime($ctime));
return $ctime;