# Normalize text files in the repository, let Git pick the working-copy ending.
* text=auto

# Shell scripts must stay LF even when checked out on Windows. A CRLF checkout
# breaks the shebang under Git Bash and WSL with a confusing
# "bad interpreter: /usr/bin/env bash^M" error.
*.sh text eol=lf

# PowerShell is CRLF by convention on Windows.
*.ps1 text eol=crlf

# UI snapshot baselines are compared byte for byte and are generated on Linux.
# Disable all line-ending conversion so a Windows checkout cannot rewrite them
# into a form that fails the comparison on the CI runner.
tests/__snapshots__/** -text

# Binary assets: never touch them.
*.png binary
*.gif binary
*.ico binary
*.db  binary
