Re: git-diff: unable to turn off diff.autorefreshindex with command line switch
Show 6 quoted lines
> On 21 Jan 2016, at 9:38 pm, Jeff King <peff@peff.net> 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