Giter Site home page Giter Site logo

Comments (6)

lemmy avatar lemmy commented on May 23, 2024

Based on the execution statistics, unix-based platforms are way more popular.

from tlaplus.

kape1395 avatar kape1395 commented on May 23, 2024

I like this idea. And I'm for the Linux-style EOLs.

from tlaplus.

lemmy avatar lemmy commented on May 23, 2024

Can we incrementally change all existing CRLF line endings to LF using a .gitattributes file, so that only the portions of a file modified by a commit have their line endings altered? Converting all CRLFs to LFs in a single operation would make comparing file versions to identify regressions very difficult.

from tlaplus.

ahelwer avatar ahelwer commented on May 23, 2024

I don't know, I think it would be better to get it out of the way in one large commit just called "Normalize line endings" so people know to ignore that one. If it's mixed in with another commit changing the file it can make it harder to see the actual change.

from tlaplus.

lemmy avatar lemmy commented on May 23, 2024

I'm strongly against one large commit as one who relies on git diff to e.g. diagnose regressions. Related, see @Calvin-L's "Code formatting improvements - NO (er, not all at once)" in #756 (comment).

from tlaplus.

ahelwer avatar ahelwer commented on May 23, 2024

Documenting this to add to the confusion, some files have both LF and CRLF line endings within the same file. For example, this section:

https://github.com/tlaplus/tlaplus/blob/de0c1811f291fcb68e81873af1fba7eb3fa9814a/tlatools/org.lamport.tlatools/src/tla2sany/parser/TLAplusParserTokenManager.java#L4267:L4278

has LF line endings while (most of) the rest of the file is CRLF. You can see this by opening the file with vim -b filename; lines ending with CRLF will have a ^M character displayed.

This is unfortunate because I'm trying to see what modifications have been made to the javacc-generated parser code but these line endings are confounding the diff attempt. Not too much of an issue, just ran the relevant files through unix2dos and committed them on my branch first.

from tlaplus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.