git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff King <peff@peff.net>
To: Andrew Stewart <boss@airbladesoftware.com>
Cc: git@vger.kernel.org
Subject: Re: git-diff: unable to turn off diff.autorefreshindex with command line switch
Date: Thu, 21 Jan 2016 16:38:01 -0500	[thread overview]
Message-ID: <20160121213801.GB6664@sigill.intra.peff.net> (raw)
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

  reply	other threads:[~2016-01-21 21:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-21 10:29 git-diff: unable to turn off diff.autorefreshindex with command line switch Andrew Stewart
2016-01-21 21:38 ` Jeff King [this message]
2016-01-22 14:12   ` Andrew Stewart

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160121213801.GB6664@sigill.intra.peff.net \
    --to=peff@peff.net \
    --cc=boss@airbladesoftware.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).