3 # Recursively find commit date/time for every known file in the repository
4 # and set the file's modification time to that date/time.
6 git ls-tree -r --name-only HEAD | while read filename; do
7 touch --date="`git log -1 --format=\"%cD\" -- \"$filename\"`" "$filename"