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

Re: [git-users] git checkout file with custom mtime

From
Daniel Fanjul <daniel.fanjul.alcuten@gmail.com>
Date
Jan 9, 2019, 22:57 UTC
Message-ID
<CAPktr3kR521rw1n0Sw-q-gkHQrc3wwLyhSo=aubrDTT3-sLhUQ@mail.gmail.com>
In-Reply-To
<20190109162045.4mit42qvnz6fpb3j@tigra>

The mtime of the files in my working copy change when I amend or rebase or checkout different branches or in general when I use git commands. I carefully store the mtime when these files are generated or overwritten and restore it when it is going to be read. The tool I use is https://packages.ubuntu.com/bionic/metastore and does not have stale information.

I do not know how git lfs will work here, it handles large contents but I doubt it will handle the mtimes as I need.

Previous: Konstantin Khomoutov
Message 4 of 4 in “Re: [git-users] git checkout file with custom mtime”
  1. Philip OakleyJan 5, 2019
  2. Daniel FanjulJan 5, 2019
  3. Konstantin KhomoutovJan 9, 2019
  4. Daniel FanjulJan 9, 2019

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.