-> 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