http://davrieb.livejournal.com/ 2009-09-19 01:45:55 -04:00 committed by Joey Hess
parent ada46376cc
commit 6c4a2a88a8
1 changed files with 18 additions and 0 deletions

View 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