forked from unslothai/unsloth
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitattributes
More file actions
20 lines (17 loc) · 1.1 KB
/
Copy path.gitattributes
File metadata and controls
20 lines (17 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Normalize Python files to LF line endings
*.py text eol=lf
# Always check out shell scripts with LF endings. Without this rule a Windows
# clone (core.autocrlf=true) rewrites them to CRLF, and the trailing \r breaks
# them when run in WSL/Linux (e.g. `set -e` -> "set: Illegal option -").
*.sh text eol=lf
# The vendored Swagger UI / ReDoc bundles are pinned by sha256 in
# studio/backend/assets/docs_ui/docs_ui_manifest.json and must stay byte-identical to the
# releases they came from. Without this a Windows clone (core.autocrlf=true) rewrites the
# .js/.css/LICENSE files to CRLF, so every digest drifts and the bytes Studio serves are no
# longer the ones that were reviewed. -text disables conversion in both directions.
studio/backend/assets/docs_ui/** -text
# Normalize Unsloth frontend sources to LF. Scoped to the frontend tree (rather
# than repo-wide *.ts/*.tsx/... rules) so the policy can't force LF on files
# elsewhere. text=auto lets Git detect and leave binary assets (logos, fonts)
# untouched while text files (.ts/.tsx/.json/.html/.svg/...) are stored as LF.
studio/frontend/** text=auto eol=lf