Re: git bugs
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 11, 2008, 00:20 UTC
- Message-ID
- <7vwskwbz63.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <832adb090806101702l79aba80cvba1eaab029e9ecd5@mail.gmail.com>
"Ben Lynn" <benlynn@gmail.com> writes:
> ... I'm making the same > assumptions, i.e. files are not touched while they're being indexed.
Actually you are making another assumption that is somewhat worrysome.
The filesystem clock and time(2) clock can be skewed and comparing a timestamp you obtain from lstat(2) and time(2) might not give you any meaningful information. That is why I made this codepath without using time(2) when I did the racy-git work.