Changes between Version 4 and Version 5 of GitTricks
- Timestamp:
- Sep 24, 2010 10:19:45 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GitTricks
v4 v5 32 32 == Set file modifcation times to last commit == 33 33 34 Here's a little scriptto walk through {{{git log }}} output, find the commit times for each file and call {{{touch}}} on them. Call it from the root of the checked out repository. {{{git}}} and {{{touch}}} need to be in your path. I was able to set times on the {{{abac}}} git repository by:34 Here's a [attachment:git-touch.py little script] to walk through {{{git log }}} output, find the commit times for each file and call {{{touch}}} on them. Call it from the root of the checked out repository. {{{git}}} and {{{touch}}} need to be in your path. I was able to set times on the {{{abac}}} git repository by: 35 35 {{{ 36 36 $ cd abac