]> sipb.mit.edu Git - ikiwiki.git/commitdiff
(no commit message)
authorhttp://davrieb.livejournal.com/ <http://davrieb.livejournal.com/@web>
Sat, 19 Sep 2009 05:45:55 +0000 (01:45 -0400)
committerJoey Hess <joey@kitenet.net>
Sat, 19 Sep 2009 05:45:55 +0000 (01:45 -0400)
doc/forum/How_does_ikiwiki_remember_times__63__.mdwn

index 5522cbf4505b3e3213129c29d73be367eb9365b7..cb14df77f7881a867e3178d88af6e6ad7345bc34 100644 (file)
@@ -87,3 +87,21 @@ Do I have it right?
     $EDITOR "$pagename"
 
 >>>>> -- [[Jon]]
+
+> A quick workaround for me to get modification times right is the following
+> little zsh script, which unfortynately only works for git:
+
+    #!/usr/bin/env zsh
+    
+    set +x
+    
+    for FILE in **/*(.); do
+      TIMES="`git log --follow  --pretty=format:%ai $FILE`"
+      #CTIME="`echo $TIMES | tail -n1`"
+      MTIME="`echo $TIMES | head -n1`"
+    
+      echo  touch -m -d "$MTIME" $FILE
+      touch -m -d "$MTIME" $FILE
+    
+    done
+