From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=1.0 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,LIST_MIRROR_RECEIVED,MAILING_LIST_MULTI, NICE_REPLY_A,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by dcvr.yhbt.net (Postfix) with ESMTP id 93E341F670 for ; Wed, 16 Feb 2022 19:02:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237987AbiBPTC1 (ORCPT ); Wed, 16 Feb 2022 14:02:27 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:37016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237979AbiBPTCV (ORCPT ); Wed, 16 Feb 2022 14:02:21 -0500 X-Greylist: delayed 129378 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 16 Feb 2022 11:02:08 PST Received: from bsmtp1.bon.at (bsmtp1.bon.at [213.33.87.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC3DCAEF3C for ; Wed, 16 Feb 2022 11:02:07 -0800 (PST) Received: from [192.168.0.98] (unknown [93.83.142.38]) by bsmtp1.bon.at (Postfix) with ESMTPSA id 4JzS4W3gWmz5tl9; Wed, 16 Feb 2022 20:02:03 +0100 (CET) Message-ID: <108f009b-daa3-4ef4-755e-7c9f86f898c5@kdbg.org> Date: Wed, 16 Feb 2022 20:02:02 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v2 0/2] Improvements to tests and docs for .gitattributes eol Content-Language: en-US To: "brian m. carlson" References: <20220111021507.531736-1-sandals@crustytoothpaste.net> <20220214020827.1508706-1-sandals@crustytoothpaste.net> <20220214204631.mquj645jt5qajwku@tb-raspi4> <9ab7761a-ff63-f809-47af-033825e5779e@kdbg.org> <9ce63b16-cf75-3404-88cf-0623194db07b@kdbg.org> Cc: =?UTF-8?Q?Torsten_B=c3=b6gershausen?= , Junio C Hamano , git@vger.kernel.org From: Johannes Sixt In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org 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