- From: Christian Grün <cg@basex.org>
- Date: Tue, 7 Nov 2023 18:10:20 +0000
- To: Norm Tovey-Walsh <norm@saxonica.com>, "public-xslt-40@w3.org" <public-xslt-40@w3.org>
- Message-ID: <9f41c7f0-0d69-45ca-b3a7-6cfd4a3c55d8@email.android.com>
Hi Norm, I forgot to mention this topic in the meeting. If no one objects, I would suggest having the proposed change to the .gitattributes file. Thanks, Christian Am 01.11.2023 19:41 schrieb Christian Grün <cg@basex.org>: Hi Norm, Thanks a lot for spending time on the line-endings challenge. I feel bad to ask for yet another change, but would it be possible to never change the file ending when checking files out, and to store all files with Unix-style line endings? I think this can best be achieved by creating a .gitattributes file with a single entry: * -text eol=lf With the current .gitattributes setting, all line endings are converted to CRLF whenever I check out a file, which makes the local and remote files binary-incompatible (as well as existing and new local clones of the repository). That’s why we tend to use Unix-style line endings both locally and remotely in our own projects, across different operating systems. Our experience is that all Windows tools can cope with that today. It would be great if we could use it as default, too. Everyone, please raise your hand if you think it’s worth spending more time on this discussion… Best, Christian ________________________________________ Von: Norm Tovey-Walsh Gesendet: Mittwoch, 01. November 2023 17:24 Bis: public-xslt-40@w3.org Betreff: Fixed line endings in the repository Hello, I’ve pushed a change to the master branch that will “fix” the line ending issues that we’ve sometimes experienced. I added a .gitattributes file that explicitly identifies some files (.txt, .xml, etc.) as “text files” and asserted that text files should have “auto” handling. That means a Windows user will see all of the text files in their local repository as having PC line endings (CR/LF). A Mac or Unix user will see all of the text files in their local repository as having Unix line endings (LF). Hopefully this will make life easier and simpler for everyone on both sides of that divide! Be seeing you, norm -- Norm Tovey-Walsh Saxonica
Received on Tuesday, 7 November 2023 18:10:35 UTC