mirror of
https://github.com/unslothai/unsloth.git
synced 2026-07-09 15:58:41 +00:00
* chore(studio/frontend): normalize line endings to LF 45 source files under studio/frontend/ were committed with CRLF or mixed line endings while the rest of the repo and the JS/TS tooling assume LF. Add a scoped `studio/frontend/** text=auto eol=lf` rule to .gitattributes and run `git add --renormalize studio/frontend` so these files are stored with LF in the index. The rule is scoped to the frontend tree (not a repo-wide *.ts/*.tsx/... policy) so it cannot force LF on files elsewhere; text=auto leaves binary assets (logos, fonts) untouched. This commit is whitespace-only (CRLF -> LF) — no source content changed (verified with `git diff --ignore-cr-at-eol`). It is intentionally isolated so it can be listed in .git-blame-ignore-revs and skipped by reviewers and `git blame`. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * chore: ignore the frontend LF-normalization commit in git blame Add .git-blame-ignore-revs listing the whitespace-only line-ending normalization commit so it doesn't pollute `git blame` output. GitHub applies this file automatically; locally run `git config blame.ignoreRevsFile .git-blame-ignore-revs`. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
13 lines
659 B
Text
13 lines
659 B
Text
# 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
|
|
|
|
# Normalize Studio 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
|