Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Lineendings (was Everything good about Python except GUI IDE?) Date: Mon, 29 Feb 2016 12:49:57 +1100 Lines: 23 Message-ID: References: <64a6599c-fae1-469d-bcee-875165b3cc7d@googlegroups.com> <56d294f8$0$1604$c3e8da3$5496439d@news.astraweb.com> <62084c14-abd1-4214-af08-70ce8449c83e@googlegroups.com> <6dq5db5j0hg2evl7t334ftdm5sk8n5itge@4ax.com> <93t5db9sib9ldgktrt7523fnis4tgq2uev@4ax.com> <9064f06c-cbd5-4bf4-98d7-24bed0e78c10@googlegroups.com> <90f65ae1-c3d8-4a36-bc9f-860403a0633c@googlegroups.com> <56d39335$0$1622$c3e8da3$5496439d@news.astraweb.com> <92074551-a917-43d2-b72f-f184798ab7e8@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de KLvjapuTW4cunttpZhJo6QzaQ9t72uBFYFCfJWcnQxmw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:Python': 0.05; 'cc:addr:python-list': 0.09; 'consistency.': 0.09; 'git': 0.09; '2016': 0.16; 'crlf': 0.16; 'crlf:': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'repo': 0.16; 'subject:?)': 0.16; 'subject:GUI': 0.16; 'wrote:': 0.16; 'config': 0.18; 'input': 0.18; '(not': 0.20; 'windows': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'feb': 0.23; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'checking': 0.27; 'message- id:@mail.gmail.com': 0.27; 'outlook': 0.28; 'record': 0.29; 'accidentally': 0.29; 'windows,': 0.29; 'run': 0.33; 'received:google.com': 0.35; 'but': 0.36; 'should': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'done.': 0.37; 'received:209.85.213': 0.37; 'received:209': 0.38; 'means': 0.39; 'protection': 0.60; 'your': 0.60; "you'll": 0.61; 'skip:u 10': 0.61; 'box.': 0.66; 'chrisa': 0.84; 'subject:good': 0.84; 'to:none': 0.91; 'serious': 0.97 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc; bh=4EXBFjgfpZsjA/hARUIb0Mct3mb6M9ZnycKpNPJinq4=; b=WjXyCkSYzf3bCkxheNEPHbllfuX2g1Inrro7PG3n3AZ8//8p27SSqD8U/dY9a7t2n4 cgQ1HO58OZ3PFnZ8t/0KLQzqPaU2qXRsYkmrnp/4JecKmMIqwxMhWBh9sMF26gjJCuVf Xq52hTzwyCPTcw8BE5uqrKShslJrOKjsU/De5e94/npytgNTRNWuN6snJsKHzNcd09zc 5u+suUJ9yYGzd3B1POdAn5fAOUtX8t6++MxNsHKD5vl6YbH5N/+QIFFC1voEh7WyooIg iCOsIhGTPIXa6/JzssSdiHk9MLOX8Z5g0pj4QUOm6NPdrW+9TiGi+gMhBgc/jlIUtmiT xcsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc; bh=4EXBFjgfpZsjA/hARUIb0Mct3mb6M9ZnycKpNPJinq4=; b=dDz84Dm343a9DkEOLiMKhNRqLJ9n6zAvaCRtRs/vyDABnukuQDks4W1u4aSihB2Ru9 vCVpHOCmFXgsLzd660G06MyGHSeeZkVen7yffz+ygB+6lWSrK7O+Xm2iqxmZf0PlNcU7 vUIJccbPaOqzrjAauDhGPavlqok+bexWzO6cUXPTO7ZN7IN3K6DnbuZXtKQerNxS5hjq N5II0mMMudtM3fMYcLytyCtOR+uODMBUfcVWmd01sK7AVhKu+NInQnm/2wM38aoJz82k XK01zwO92YIXHsbmosZbCzYyY6kU3qIYVaDFJZGNFU8mQdTa2nYXaZcVRWkfdfh5+2+F 1Vlg== X-Gm-Message-State: AD7BkJIj7KxOSZouw/ao3g9uEYB2gjb3y806F36GY6sd4tm5JNfMIrLWuH7v8CUkjxh7qKZkvjoqH+wzS9H/7A== X-Received: by 10.50.28.105 with SMTP id a9mr8062543igh.94.1456710597363; Sun, 28 Feb 2016 17:49:57 -0800 (PST) In-Reply-To: <92074551-a917-43d2-b72f-f184798ab7e8@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:103673 On Mon, Feb 29, 2016 at 12:39 PM, Rustom Mody wrote: > Unfortunately that's the outlook all major VCSes (not just git) have started > with and its wrong. > Speaking somewhat simplistically: > On windows one should see CRLF > On *nix LF > And this SHOULD NOT be a diff! > [Assuming the VCS is serious about collaboration] > If you want this, simply run this on your Windows computer: git config --global core.autocrlf true Job done. The repo will record LF, but you'll get CRLF on the Windows box. Alternatively, if you're happy with LF on Windows, but want protection against accidentally checking in a CRLF: git config --global core.autocrlf input Either way, this means that line endings get folded to LF for consistency. ChrisA