Re: git diff --quiet exits with 1 on clean tree with CRLF conversions
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 28, 2017, 21:50 UTC
- Message-ID
- <xmqqshmyhtnu.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <d98aa589-3e08-249d-0c88-72dbcee1a568@web.de>
Torsten Bögershausen <tboegi@web.de> writes:
Show 17 quoted lines
> On 2017-02-27 21:17, Junio C Hamano wrote: > >> Torsten, you've been quite active in fixing various glitches around >> the EOL conversion in the latter half of last year. Have any >> thoughts to share on this topic? >> >> Thanks. > > Sorry for the delay, being too busy with other things. > I followed the discussion, but didn't have good things to contribute. > I am not an expert in diff.c, but there seems to be a bug, thanks everybody > for digging. > > Back to business: > > My understanding is that git diff --quiet should be quiet, when > git add will not do anything.
Yes, I think that is a sensible criterion. What I was interested to hear from you the most was to double check if Mike's expectation is reasonable. Earlier we had a lengthy discussion on what to do when convert-to-git and convert-to-working-tree conversions do not round trip, and I was wondering if this was one of those cases.