From: Junio C Hamano Date: Wed, 11 Jun 2008 00:20:04 GMT Subject: Re: git bugs Message-ID: <7vwskwbz63.fsf@gitster.siamese.dyndns.org> In-Reply-To: <832adb090806101702l79aba80cvba1eaab029e9ecd5@mail.gmail.com> "Ben Lynn" 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.