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

Re: git-ls-new-files & make patch, pull, etc.

From
Junio C Hamano <junkio@cox.net>
Date
Sep 9, 2005, 03:19 UTC
Message-ID
<7v64tbrkq5.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<4320B8D7.7070004@linuxmachines.com>

In my opinion, setting the file timestamp to the commit time (or any other time other than the time of checkout) tends to screw you up more than help you.

Suppose you have the latest checked out in your working tree, you build and test, and find regressions. You'd want to check out from an older commit, rebuild and make sure things used to work correctly. If the checkout used the timestamp of the older commit, however, all the things you built from the latest would have timestamps newer than the source, so you would end up always having to run "make clean" before rebuilding.

Previous: Jeff CarrNext: Johannes Schindelin
Message 6 of 8 in “git-ls-new-files & make patch, pull, etc.”
  1. Jeff CarrAug 23, 2005
  2. Junio C HamanoAug 23, 2005
  3. Jeff CarrSep 6, 2005
  4. Junio C HamanoSep 6, 2005
  5. Jeff CarrSep 8, 2005
  6. Junio C HamanoSep 9, 2005
  7. Johannes SchindelinAug 23, 2005
  8. Jeff CarrSep 6, 2005

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.