From: Andrew Stewart Date: Fri, 22 Jan 2016 14:12:15 GMT Subject: Re: git-diff: unable to turn off diff.autorefreshindex with command line switch Message-ID: <5BAA7C36-0059-4F0B-96B6-7B6E66D7C315@airbladesoftware.com> In-Reply-To: <20160121213801.GB6664@sigill.intra.peff.net> > On 21 Jan 2016, at 9:38 pm, Jeff King wrote: > But note that your whole test is going to be racy, and possibly depend > on the resolution of your filesystem's timestamps. Did you run your test > as a single script, where the initial index write and the `touch` may > happen in the same second? If so, trying running it slowly by hand, > or inserting "sleep 1" between the commands. I ran my tests by hand, taking more than 1s between commands. I also used `stat README` and `ls -l README` on occasion to confirm that `touch` was updating the file's timestamps. -- Andrew Stewart