checkout with given mtime

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

When the mtimes of my tracked files are updated during usual git
commands some other tools that depend on them have trouble. So I
restore their mtimes for these other tools and then git ends rereading
contents of files that have not changed. I would like to improve this.

Is there a way to check out a file with a given mtime so I do not have
to update it later and force git to reread it?

Something like 'git checkout --mtime $mymtime -- $myfile'. If the file
is not there or does not have the proper contents, git would write the
file, set the mtime of the file and update the index accordingly. If
the file is there and does have the proper contents according to the
index, git would update the mtime of the file, update the index
accordingly, and not read or write the contents at all.

Thanks, and regards,
Daniel.



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux