Re: [PATCH] Support diff.autorefreshindex=true in `git-diff --quiet'
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 1, 2008, 10:31 UTC
- Message-ID
- <7vskskw41j.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <quack.20080901T0129.lth8wuci80o@roar.cs.berkeley.edu>
Karl Chen <quarl@cs.berkeley.edu> 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?