Re: [PATCH] Round-down years in "years+months" relative date view
- From
A Large Angry SCM <gitzilla@gmail.com>
- Date
- Aug 28, 2009, 22:01 UTC
- Message-ID
- <4A9853B8.2090709@gmail.com>
- In-Reply-To
- <20090828171552.GA6821@coredump.intra.peff.net>
Jeff King wrote:
Show 12 quoted lines
> On Fri, Aug 28, 2009 at 07:00:59PM +0200, Alex Riesen wrote: > >> On Fri, Aug 28, 2009 at 17:02, Jeff King<peff@peff.net> 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.