diff options
author | Malfurious <m@lfurio.us> | 2022-07-16 08:29:51 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2022-07-16 08:29:51 -0400 |
commit | 8f88552a85dd19b4dbe45047a2b636305327ae18 (patch) | |
tree | 7bd8d96c32b42c75e4fd264e2fcaae67919cb4fb /.gitattributes | |
download | project-s-8f88552a85dd19b4dbe45047a2b636305327ae18.tar.gz project-s-8f88552a85dd19b4dbe45047a2b636305327ae18.zip |
Add .gitattributes per Godot recommendations
The editor reportedly prefers to save files with UNIX line endings.
This is in conflict with Git for Windows' tendency to default
core.autocrlf to true. For a more consistent editing experience,
checkout all text files as EOL = LF.
See these discussions for more details:
https://github.com/godotengine/godot/pull/42447
https://github.com/godotengine/godot-proposals/issues/897
Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to '.gitattributes')
-rw-r--r-- | .gitattributes | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..8ad74f7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Normalize EOL for all files that Git considers text files. +* text=auto eol=lf |