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

Re: preserving mtime

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Nov 19, 2007, 14:38 UTC
Message-ID
<Pine.LNX.4.64.0711191537030.16728@wbgn129.biozentrum.uni-wuerzburg.de>
In-Reply-To
<20071117182236.GD23659@blorf.net>
Hi,
On Sat, 17 Nov 2007, Wayne Davison wrote:
Show 9 quoted lines
> On Fri, Nov 16, 2007 at 11:15:34AM +0100, Andreas Ericsson wrote:
> >> is it possible to tell git to preserve the file modification time in
> >> a checked out copy?
> 
> > Fabrizio Pollastri wrote:
> > No. Doing so would seriously break build-systems.
> 
> I wish that the initial clone would set the modification time to the
> commit time.

Could you stop this discussion, please? This subject comes up every once in a while, and in the meantime the archives contain more sane explanations why this would be a bad behaviour of git than I could tell off of my head.

So no, this is not a sane behaviour.

If you _must_ inist on this behaviour, write your own hook, don't tell anybody about it, especially not when things break.

Hth, Dscho

Previous: Robin RosenbergNext: Jakub Narebski
Message 11 of 14 in “preserving mtime”
  1. Fabrizio PollastriNov 16, 2007
  2. Andreas EricssonNov 16, 2007
  3. Wayne DavisonNov 17, 2007
  4. Mike HommeyNov 18, 2007
  5. Martin LanghoffNov 18, 2007
  6. David BrownNov 18, 2007
  7. Martin LanghoffNov 18, 2007
  8. David BrownNov 18, 2007
  9. Jan HudecNov 18, 2007
  10. Robin RosenbergNov 18, 2007
  11. Johannes SchindelinNov 19, 2007
  12. Jakub NarebskiNov 16, 2007
  13. Junio C HamanoNov 16, 2007
  14. Erik WarendorphNov 16, 2007

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.