Merge remote-tracking branch 'pm/master'
[sxmo-sms-ssh] / git-commit-date
1 #!/bin/sh -x
2
3 # preserve file timestamp in git date inside commit
4 # usage: git-commit-date path
5
6 git commit --date="$( ls --full-time $1  | awk '{ print $6" "$7 }' )" $1
7