xicri / genshin-langdata

English-Chinese-Japanese translation dataset of the terms in Genshin Impact
https://genshin-dictionary.com
Other
27 stars 13 forks source link

Add .gitattributes to convert crlf to lf #302

Open xicri opened 5 hours ago

xicri commented 5 hours ago

From https://github.com/xicri/genshin-langdata/issues/189#issuecomment-2360918462

Also, if "git config core.autocrlf" is set to true, you will need to remove the following line from .editorconfig.

end_of_line = lf

I will try to solve this issue by adding .gitattributes with * text=auto eol=lf.

xicri commented 4 hours ago

@yasuking0304 I have added the .gitattributes to automatically convert CRLF to LF on the commit. When you have time, can you pull the latest main, run git config --local core.autocrlf true in the project root of genshin-langdata, restore end_of_line = lf into your .editorconfig if you have deleted it, and check if any problems happen?