From: Jeff King Date: Fri, 28 Aug 2009 17:15:52 GMT Subject: Re: [PATCH] Round-down years in "years+months" relative date view Message-ID: <20090828171552.GA6821@coredump.intra.peff.net> In-Reply-To: <81b0412b0908281000l41c862f9ye52da7251014c4f7@mail.gmail.com> On Fri, Aug 28, 2009 at 07:00:59PM +0200, Alex Riesen wrote: > On Fri, Aug 28, 2009 at 17:02, Jeff King wrote: > > But that's the point: you can't do that without a race condition. Your > > test gets a sense of the current time, then runs git, which checks the > > current time again. How many seconds elapsed between the two checks? > > How _many_ do you need? I don't understand what you're trying to say. My point is that if you are checking results to a one-second precision, you need to know whether zero seconds elapsed, or one second, or two seconds, or whatever to get a consistent result. -Peff