From: A Large Angry SCM Date: Fri, 28 Aug 2009 22:01:28 GMT Subject: Re: [PATCH] Round-down years in "years+months" relative date view Message-ID: <4A9853B8.2090709@gmail.com> In-Reply-To: <20090828171552.GA6821@coredump.intra.peff.net> Jeff King wrote: > 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. To no-one in particular, Gitzilla mumbles "To do this right(tm) would probably require LD_PRELOAD magic with a environment variable invocation.