git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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/
Previous: David BrownNext: Johannes Schindelin
Message 13 of 16 in “timestamps not git-cloned”
  1. jidanni@jidanni.orgNov 28, 2008
  2. dhruvaNov 28, 2008
  3. jidanni@jidanni.orgNov 28, 2008
  4. Daniel BarkalowNov 28, 2008
  5. Chris FreyNov 29, 2008
  6. Stephen R. van den BergNov 29, 2008
  7. Thomas RastNov 29, 2008
  8. jidanni@jidanni.orgNov 30, 2008
  9. Andreas EricssonDec 1, 2008
  10. Jakub NarebskiDec 1, 2008
  11. Sitaram ChamartyNov 30, 2008
  12. David BrownNov 28, 2008
  13. Peter KreftingNov 28, 2008
  14. Johannes SchindelinNov 28, 2008
  15. Robin RosenbergNov 28, 2008
  16. Johannes SchindelinNov 28, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.