# Re: git-svn and incorrect working copy file timestamps?

1 messages from 2009-03-19 to 2009-03-19. Participants: Guido Ostkamp.
Thread: https://gitlist.dev/t/18422

## Guido Ostkamp, 2009-03-19 23:02

Subject: Re: git-svn and incorrect working copy file timestamps?
Message-ID: <alpine.LSU.2.01.0903192355590.29898@bianca.dialin.t-online.de>
URL: https://gitlist.dev/e/alpine.LSU.2.01.0903192355590.29898%40bianca.dialin.t-online.de

```
> I learned from http://marc.info/?l=git&m=122783905206964&w=2 that all 
> Git commands do not preserve file timestamps because Git, by design, 
> does not record timestamps in the tree objects.  So, in order to see the 
> last time a particular file changed, you must examine the commit log. 
> I guess I'll just have to get used to ignoring the working copy file 
> timestamps.

As far as I know setting the current time is required when switching 
between different named branches in the same repository.

It can happen that a branch switch ('checkout' in Git's terminology) 
retrieves an older version of a source file, and then the Makefile would 
not detect that an object file (a result from earlier compilation that is 
of course not stored in the repo itself) has to be rebuild because this is 
based on time checks only. In order to avoid this, the source file (even 
if older) gets the current date, so it is in any case newer than the 
object file and causes an automatic rebuild.

Regards

Guido

```
