diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2010-04-16 17:02:29 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2010-04-16 17:02:29 -0400 |
commit | b14f84c4acccbc8450a9102b3b647013989b27bb (patch) | |
tree | bc02d7e1c6228775b46040de2945382324a0c4a9 /IkiWiki/Plugin/cvs.pm | |
parent | 6c5c0f8c682a2727bb71652668fef90a40d99f25 (diff) | |
download | ikiwiki-b14f84c4acccbc8450a9102b3b647013989b27bb.tar ikiwiki-b14f84c4acccbc8450a9102b3b647013989b27bb.tar.gz |
--gettime revamp
* Rename --getctime to --gettime. (The old name still works for
backwards compatability.)
* --gettime now also looks up last modification time.
* Add rcs_getmtime to plugin API; currently only implemented
for git.
Diffstat (limited to 'IkiWiki/Plugin/cvs.pm')
-rw-r--r-- | IkiWiki/Plugin/cvs.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/cvs.pm b/IkiWiki/Plugin/cvs.pm index 26a3e9dd2..360d97249 100644 --- a/IkiWiki/Plugin/cvs.pm +++ b/IkiWiki/Plugin/cvs.pm @@ -49,6 +49,7 @@ sub import { hook(type => "rcs", id => "rcs_recentchanges", call => \&rcs_recentchanges); hook(type => "rcs", id => "rcs_diff", call => \&rcs_diff); hook(type => "rcs", id => "rcs_getctime", call => \&rcs_getctime); + hook(type => "rcs", id => "rcs_getmtime", call => \&rcs_getmtime); } sub genwrapper () { @@ -485,4 +486,8 @@ sub rcs_getctime ($) { return $date; } +sub rcs_getmtime ($) { + error "rcs_getmtime is not implemented for cvs\n"; # TODO +} + 1 |