From: Junio C Hamano <gitster@pobox.com>
To: Christoph Groth <christoph@grothesque.org>
Cc: git@vger.kernel.org
Subject: Re: Stat cache in .git/index hinders syncing of repositories
Date: Sat, 18 Jan 2020 10:15:22 -0800 [thread overview]
Message-ID: <xmqq7e1od41x.fsf@gitster-ct.c.googlers.com> (raw)
In-Reply-To: <87v9p9skjz.fsf@drac> (Christoph Groth's message of "Sat, 18 Jan 2020 00:57:36 +0100")
Christoph Groth <christoph@grothesque.org> 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?
next prev parent reply other threads:[~2020-01-18 18:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-17 23:57 Stat cache in .git/index hinders syncing of repositories Christoph Groth
2020-01-18 18:15 ` Junio C Hamano [this message]
2020-01-18 19:06 ` Christoph Groth
2020-01-18 19:42 ` brian m. carlson
2020-01-18 22:04 ` Christoph Groth
2020-01-20 12:01 ` Johannes Schindelin
2020-01-20 23:53 ` Christoph Groth
2020-01-21 2:53 ` brian m. carlson
2020-01-24 9:16 ` Christoph Groth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqq7e1od41x.fsf@gitster-ct.c.googlers.com \
--to=gitster@pobox.com \
--cc=christoph@grothesque.org \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).