Re: [PATCH v2 2/2] update-index: refresh should rewrite index in case of racy timestamps
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 5, 2022, 21:03 UTC
- Message-ID
- <xmqq7dbdhp36.fsf@gitster.g>
- In-Reply-To
- <dfeabf6af15dfab06bde1ec7dcc2d0576497be9b.1641388523.git.gitgitgadget@gmail.com>
"Marc Strapetz via GitGitGadget" <gitgitgadget@gmail.com> writes:
> +test_expect_success '--refresh has no racy timestamps to fix' ' > + reset_files && > + test-tool chmtime =1234567891 .git/index &&
Don't some people use Git on VFAT where the time resolution is 2 seconds? 1234567890 and 1234567891 differ only by one second, so chmtime may not be able to store one of them exactly, so I am not sure if this guarantees "no racy timestamps to fix".