Create and commit a .gitattributes with
* text eol=lf

Note the lack of . in the first line. It matches all files, says they're
text, and says their EOL is Unix-style LF only (as opposed to Windows CRLF
or very old Mac CR).

Add exceptions as they're found. This would be a good start:
* text eol=lf
*.bin binary
*.prob binary

-- Tino Didriksen


On 6 April 2018 at 16:35, Jaume OrtolĂ  i Font <jaumeort...@gmail.com> wrote:

> Hi,
>
> We are having some undesired differences in git commits because of line
> endings[1]. Depending on the operating system and the text editor you use,
> the newline character may end up being changed.
>
> Can the repository configuration be modified to avoid this issue? Or can
> somebody recommend a common approach to be followed by all Apertium
> contributors? Some options here [2].
>
> Jaume
>
> [1] https://github.com/apertium/apertium-spa/commit/
> 0e766bdd56b7505677c2c28f1beb4600b4893508
> [2] https://help.github.com/articles/dealing-with-line-endings/
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Apertium-stuff mailing list
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to