Re: timestamps not git-cloned
- From
Peter Krefting <peter@softwolves.pp.se>
- Date
- Nov 28, 2008, 14:59 UTC
- Message-ID
- <Pine.LNX.4.64.0811281554560.14606@ds9.cixit.se>
- In-Reply-To
- <e3f230850811271908g1be6b3f9t3e678081088de06b@mail.gmail.com>
Hi!
dhruva:
> I do not think there is an VCS that records timestamps. Only file > contents are tracked.
CVS sort of does. The initial checkout sets the time stamp of files to their last *check-in* time (and you can import a file with -D to set its commit time to the current timestamp). Updates do, however, set to current time (to not break make and friends).
I miss this behaviour in Git, but I have learnt to live with it. I guess it is like a difference in philosophy on what time-stamps are supposed to record, like how UNIX "cp" sets the time of the new-born copy to now, while DOS "copy" sets it to the old time-stamp. Coming to Unix and Linux from DOS (via OS/2), I find "cp" behaviour weird. But have learnt to live with it (and use "cp -a" a lot).
-- \\// Peter - http://www.softwolves.pp.se/