From: Johannes Sixt Date: Wed, 16 Feb 2022 19:02:02 GMT Subject: Re: [PATCH v2 0/2] Improvements to tests and docs for .gitattributes eol Message-ID: <108f009b-daa3-4ef4-755e-7c9f86f898c5@kdbg.org> In-Reply-To: Am 16.02.22 um 11:28 schrieb brian m. carlson: > The situation is that eol is in effect if and only if: > > * text is set; > * text is unspecified; or > * text is auto, the file is detected as text, and the file has LF line > endings in the index. > > Alternately, it has no effect if and only if: > > * text is unset; > * text is auto and the file is detected as binary; or > * text is auto and the file is detected as text and has CRLF line > endings. > > I'm not sure one reads significantly easier than the other. I slightly > prefer the former because it has fewer conditions with multiple nested > entries, though. I agree that the first version is easier to understand. -- Hannes