.env filter=git-crypt diff=git-crypt

# Shell scripts must stay LF so Git Bash on Windows can run them
*.sh text eol=lf
scripts/check-naming-and-style.sh text eol=lf
.githooks/pre-commit text eol=lf

# Batch files must be CRLF. cmd.exe parses a lone LF inconsistently around
# labels and goto, so an LF-only .cmd can run its happy path and then jump
# nowhere on the error path - which is the path that matters in a promote
# script.
*.cmd text eol=crlf

# Vendored API-docs renderers (Redoc, Swagger UI). Minified upstream builds of
# code nobody here wrote: one line, over a megabyte each. -diff keeps a textual
# diff of that line out of every review, and linguist-vendored keeps them out of
# the language breakdown, which they would otherwise dominate.
shopdb/core/api/staticdocs/*.js linguist-vendored -diff
shopdb/core/api/staticdocs/*.css linguist-vendored -diff
