Option to restore modification time when deploying from git

When a new deployment happens from git all the files have their dates set to the time of deployment. It would be nice to have the option to have the deployment run something like git-restore-mtime afterwards so each of the files has the date of last commit.