aboutsummaryrefslogtreecommitdiff
path: root/doc/tips/inside_dot_ikiwiki
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2010-04-16 17:02:29 -0400
committerJoey Hess <joey@gnu.kitenet.net>2010-04-16 17:02:29 -0400
commitb14f84c4acccbc8450a9102b3b647013989b27bb (patch)
treebc02d7e1c6228775b46040de2945382324a0c4a9 /doc/tips/inside_dot_ikiwiki
parent6c5c0f8c682a2727bb71652668fef90a40d99f25 (diff)
downloadikiwiki-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 'doc/tips/inside_dot_ikiwiki')
-rw-r--r--doc/tips/inside_dot_ikiwiki/discussion.mdwn7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/tips/inside_dot_ikiwiki/discussion.mdwn b/doc/tips/inside_dot_ikiwiki/discussion.mdwn
index 34d5b9252..69df369ec 100644
--- a/doc/tips/inside_dot_ikiwiki/discussion.mdwn
+++ b/doc/tips/inside_dot_ikiwiki/discussion.mdwn
@@ -6,14 +6,15 @@ My database appears corrupted:
No idea how this happened. I've blown it away and recreated it but, for future reference, is there any less violent way to recover from this situation? I miss having the correct created and last edited times. --[[sabr]]
> update: fixed ctimes and mtimes using [these instructions](http://u32.net/Mediawiki_Conversion/Git_Import/#Correct%20Creation%20and%20Last%20Edited%20time) --[[sabr]]
-> That's overly complex. Just run `ikiwiki -setup your.setup -getctime`.
+> That's overly complex. Just run `ikiwiki -setup your.setup -gettime`.
> BTW, I'd be interested in examining such a corrupt storable file to try
> to see what happened to it. --[[Joey]]
->> --getctime appears to only set the last edited date. It's not supposed to set the creation date, is it? The only place that info is stored is in the git repo.
+>> --gettime appears to only set the last edited date. It's not supposed to set the creation date, is it? The only place that info is stored is in the git repo.
>>> Pulling the page creation date out of the git history is exactly what
->>> --getctime does. --[[Joey]]
+>>> --gettime does. (It used to be called --getctime, and only do that; now
+>>> it also pulls out the last modified date). --[[Joey]]
>> Alas, I seem to have lost the bad index file to periodic /tmp wiping; I'll send it to you if it happens again. --[[sabr]]