Re: [PATCH v2 0/2] Improvements to tests and docs for .gitattributes eol
Am 16.02.22 um 11:28 schrieb brian m. carlson:
Show 17 quoted lines
> 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