• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得windowscocoapythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

Commit MetaInfo

Revisión00c36afad2296092106653f2dea4c290ebe37bfc (tree)
Tiempo2014-06-11 01:39:36
Autorumorigu <umorigu@gmai...>
Commiterumorigu

Log Message

Keep the file timesamp of commit time

Cambiar Resumen

Diferencia incremental

--- a/release.sh
+++ b/release.sh
@@ -205,6 +205,15 @@ if [ "$__git" ] ; then
205205 cd $pkg_dir
206206 echo git reset --hard "$tag"
207207 git reset --hard "$tag"
208+
209+ # Set file timestamp
210+ for FILE in $(git ls-files); do
211+ TIME=$(git log --pretty=format:%ci -n1 $FILE)
212+ echo $TIME'\t'$FILE
213+ STAMP=$(date -d "$TIME" +"%y%m%d%H%M.%S")
214+ touch -t $STAMP $FILE
215+ done
216+
208217 cd ..
209218 else
210219 exit