]> git.phdru.name Git - git-scripts.git/blob - set-commit-date
Feat(submodules/remove): Add option `-c`
[git-scripts.git] / set-commit-date
1 #! /bin/sh
2
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.
5
6 git ls-tree -r --name-only HEAD | while read filename; do
7   touch --date="`git log -1 --format=\"%cD\" -- \"$filename\"`" "$filename"
8 done