Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Right, but if you only clone and build, why would the files modification date be different compared to the version that was committed to git? Does just cloning a repo already lead to different file modification dates in my local copy?


Git does not store or restore file modification times.


And the reason for that in turn is because if you are on one commit and check out and older commit, then restoring file modification times to what they were at the time of the older commit would cause build tools that look at file modification times to sometimes not pick up on all the changes.


Ah ok, that explains it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: