Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Prevent Git's text/EOL handling from corrupting binary assets.
#
# The repo previously had no .gitattributes, so on a default Windows clone

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we remove this comment? That history is tracked in the issue and PR, I don't think we need it as a permanent comment too

# (core.autocrlf=true, the Git for Windows installer default) checkout applied
# LF->CRLF conversion to binary map data: every 0x0A byte gained a 0x0D prefix,
# the file no longer matched width*height, and the game crashed on map load.
# Marking these types `binary` (a macro for `-text -diff`) makes Git check them
# out verbatim on every platform. (#4601)

# Map terrain data
*.bin binary

# Images
*.png binary
*.webp binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary

# Audio
*.mp3 binary
*.ogg binary
*.wav binary

# Fonts
*.woff binary
*.woff2 binary
*.ttf binary
*.otf binary
Loading