AW: Fixed line endings in the repository

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 Wednesday, 1 November 2023 18:41:29 UTC