git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-diff: unable to turn off diff.autorefreshindex with command line switch

From
Jeff King <peff@peff.net>
Date
Jan 21, 2016, 21:38 UTC
Message-ID
<20160121213801.GB6664@sigill.intra.peff.net>
In-Reply-To
<4432B7DA-921D-4D1C-8DC5-55A4E3722F73@airbladesoftware.com>
On Thu, Jan 21, 2016 at 10:29:49AM +0000, Andrew Stewart wrote:
> # Now the strange behaviour: no output from the next command
> $ git -c diff.autorefreshindex=0 diff --raw -- README
I can't reproduce here (v2.7.0, Linux).

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.

-Peff
Previous: Andrew StewartNext: Andrew Stewart
Message 2 of 3 in “git-diff: unable to turn off diff.autorefreshindex with command line switch”
  1. Andrew StewartJan 21, 2016
  2. Jeff KingJan 21, 2016
  3. Andrew StewartJan 22, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.