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

Re: standarize mtime when git checkout

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 8, 2013, 22:03 UTC
Message-ID
<7vobacyajq.fsf@alter.siamese.dyndns.org>
In-Reply-To
<7D0754FFADBD2D4785C1D233C497C47B209AF2BC@SJEXCHMB06.corp.ad.broadcom.com>
"Rick Liu" <rickliu@broadcom.com> writes:
> Can we use GIT's commit time as the mtime for all of files/folders when we do "git checkout"?

No. That will screw up common practice of build based on file timestamps (e.g. make).

You may be interested in "git archive $commit" which will set the file timestamps that of the commit object.

Previous: Rick LiuNext: René Scharfe
Message 2 of 4 in “standarize mtime when git checkout”
  1. Rick LiuJul 8, 2013
  2. Junio C HamanoJul 8, 2013
  3. René ScharfeJul 9, 2013
  4. Rick LiuJul 9, 2013

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.