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

Re: Setting file timestamps to commit time (git-checkout)

From
DVDominik Vogt <vogt@linux.vnet.ibm.com>
Date
Dec 11, 2013, 07:37 UTC
Message-ID
<20131211073711.GA4848@linux.vnet.ibm.com>
In-Reply-To
<87bo0olebe.fsf@igel.home>
On Tue, Dec 10, 2013 at 08:02:29PM +0100, Andreas Schwab wrote:
Show 7 quoted lines
> Dominik Vogt <vogt@linux.vnet.ibm.com> writes:
> 
> > The second best approach I could think of is to stamp files with the
> > timestamp of the last commit that touched that, but I guess that is
> > not a cheap operation either.
> 
> I'm using this script for this:
[snip]

Hm, that runs 18 s on the local Gcc repository. That's not as expensive as I would have thought, but definitely not suitable to run automatically on each checkout. I wonder if performance could be improved by integrating the script logic into the git-checkout code (activated by a command line option).

On Tue, Dec 10, 2013 at 05:39:05PM -0800, Constantine A. Murenin wrote:
> You can already do this with a very small third-party script:
>
>     https://github.com/cnst/git-tools/blob/master/git-restore-mtime-core
That script just produces error messages for me.
Ciao
Dominik ^_^  ^_^
-- 
Dominik Vogt
IBM Germany
Previous: Andreas SchwabNext: Constantine A. Murenin
Message 5 of 11 in “Setting file timestamps to commit time (git-checkout)”
  1. Dominik VogtDec 9, 2013
  2. Junio C HamanoDec 9, 2013
  3. Dominik VogtDec 10, 2013
  4. Andreas SchwabDec 10, 2013
  5. Dominik VogtDec 11, 2013
  6. Constantine A. MureninDec 11, 2013
  7. Jonathan NiederDec 9, 2013
  8. Dominik VogtDec 10, 2013
  9. Duy NguyenDec 10, 2013
  10. Jonathan NiederDec 11, 2013
  11. Jonathan NiederDec 11, 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.