From: Junio C Hamano Date: Mon, 01 Sep 2008 10:31:36 GMT Subject: Re: [PATCH] Support diff.autorefreshindex=true in `git-diff --quiet' Message-ID: <7vskskw41j.fsf@gitster.siamese.dyndns.org> In-Reply-To: Karl Chen writes: > When diff.autorefreshindex is true, if a file has merely been 'touched' > (mtime changed, but contents unchanged), then `git-diff --quiet' will > now return 0 (indicating no change) instead of 1, and also silently > refresh the index. My knee-jerk reaction is that I do not particularly like this, but I haven't thought things through. What does --exit-code do with or without the configuration variable?