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

2019-01-09 Thread Daniel Fanjul
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

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

2019-01-09 Thread Konstantin Khomoutov
On Sat, Jan 05, 2019 at 10:44:47PM +0100, Daniel Fanjul wrote: > 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

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

2019-01-09 Thread Philip Oakley
Hi Daniel, I think between us we have two wrongs and a right. On 06/01/2019 14:11, Daniel Fanjul wrote: Yes, I know about it but it does not work completely for me: Examples: $ git update-index --no-assume-unchanged saves/* && touch saves/* && time git status saves/* 20 seconds reading file

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

2019-01-06 Thread Daniel Fanjul
Yes, I know about it but it does not work completely for me: Examples: $ git update-index --no-assume-unchanged saves/* && touch saves/* && time git status saves/* 20 seconds reading file contents that did not actually change. $ git update-index --assume-unchanged saves/* && touch saves/* &&

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

2019-01-06 Thread Philip Oakley
Hi Daniel (trimmed the cc, removing the Git List as they won't have seen these HTML emails.. I'd only added it to confirm their address and forgot to remove it, doh!) Yes, the 'git update-index --assume-unchanged' is confusing because actually it is a _user_ promise not to change things,

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

2019-01-05 Thread Daniel Fanjul
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

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

2019-01-05 Thread Philip Oakley
Daniel, Do you use the Git LFS (Large File System) add-on?, are you on Windows or Linux?, and what tools need mtime (or is it something about the process of using the tool..)? The Git viewpoint is that the mtime shouldn't be important for the version storage & control aspects, though it

[git-users] git checkout file with custom mtime

2019-01-05 Thread Daniel Fanjul
Hi all, I have some large files tracked in git and I have to track their mtime because of some legacy software. With another tool I save and restore their mtime. When I restore their mtime git status rereads the files to update the mtime in the index. I would like to improve that because there