Thread (1 message) 1 message, 1 author, 2020-01-18

Re: Stat cache in .git/index hinders syncing of repositories

From: Junio C Hamano <hidden>
Date: 2020-01-18 18:15:31

Christoph Groth [off-list ref] writes:
However, there is one problem with syncing git repositories, that has
been noticed by multiple people [1]: The file .git/index contains not
only the “git index”, but also a cache of stat-data of the files in the
working directory.  Some file synchronizers are able to sync mtimes, but
syncing ctimes would be bizarre (if it is even possible).
The stat-data in the index file is meant to be a mere optimization,
and after copying .git/index and the working tree files to a new
box, running "git update-index --refresh" would make them in sync,
no?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help