From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-3.0 required=3.0 tests=AWL,BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id E1361202A0 for ; Thu, 26 Oct 2017 19:22:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932450AbdJZTWI (ORCPT ); Thu, 26 Oct 2017 15:22:08 -0400 Received: from mout.web.de ([217.72.192.78]:58432 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932326AbdJZTWI (ORCPT ); Thu, 26 Oct 2017 15:22:08 -0400 Received: from localhost ([195.198.252.176]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MQNma-1dkk0V0FHI-00Tnhk; Thu, 26 Oct 2017 21:22:03 +0200 Date: Thu, 26 Oct 2017 21:22:01 +0200 From: Torsten =?iso-8859-1?Q?B=F6gershausen?= To: Lars Schneider Cc: Johannes Sixt , Johannes Schindelin , git , Jeff King Subject: Re: Consequences of CRLF in index? Message-ID: <20171026192201.GB27760@tor.lan> References: <5e962f69-f9cb-bd7e-481f-050e6239813f@kdbg.org> <30ED36AB-FAB1-4635-94AF-FCEC6F02CE01@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <30ED36AB-FAB1-4635-94AF-FCEC6F02CE01@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Provags-ID: V03:K0:PCBZlGmTqn3eMkvHYJBdiBth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VUVDN0GRhPg== Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Thu, Oct 26, 2017 at 01:01:25PM +0200, Lars Schneider wrote: > > > On 26 Oct 2017, at 09:09, Johannes Sixt wrote: > > > > Am 25.10.2017 um 14:19 schrieb Johannes Schindelin: > >> I envy you for the blessing of such a clean C++ source that you do not > >> have any, say, Unix shell script in it. Try this, and weep: > >> $ printf 'echo \\\r\n\t123\r\n' >a1 > >> $ sh a1 > >> a1: 2: a1: 123: not found > > > > I was bitten by that, too. For this reason, I ensure that shell scripts and Makefiles begin their life on Linux. Fortunately, modern editors on Windows, includ^Wand vi, do not force CRLF line breaks, and such files can be edited on Windows, too. > > Wouldn't this kind of .gitattributes setup solve the problem? > > * -text > *.sh text eol=lf > Yes, exactly. and for the snake-lovers: *.py text eol=lf