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 5, 2019, 21:44 UTC
Message-ID
<CAPktr3k6GmYkTE9=0jcs8+4BEeeAnvQa6daxnwcqTwrL91Y-ug@mail.gmail.com>
In-Reply-To
<1413fbaa-8a83-0f43-afcb-5cb67683b505@iee.org>

I'm on Ubuntu. I do not use LFS. I track mods and saved games of Skyrim with git, TESV.exe sorts the saved games only by their mtime. I know it is not the most usual use case for git.

I agree with that viewpoint and I like the way git works right now, I do not want to change that. Checking out the saved games and then fixing the mtime works but forces a lot of unneeded I/O.

I forgot to mention that 'git update-index --assume-unchanged' does not solve this well enough. Eventually 'git status' rereads the file when that flag is removed. A better way for my use case would be being able to set the proper mtime without forcing a rehash of the file that yields the same object.

Thanks for your reply.
Previous: Philip OakleyNext: Konstantin Khomoutov
Message 2 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.