Skip to content

Force LF line endings for .jl files - #90

Merged
bspanoghe merged 1 commit into
mainfrom
wclaer/gitattributes-lf
Nov 19, 2026
Merged

bspanoghe merged 1 commit into
mainfrom
wclaer/gitattributes-lf

Conversation

@wclaerhout

Copy link
Copy Markdown
Collaborator

On Windows, Git for Windows defaults to core.autocrlf=true. Combined with * text=auto, notebooks get checked out with CRLF, and notebook-checks/sync_exercises.jl then errors with CRLF line endings are not supported.

This adds *.jl text eol=lf to .gitattributes, so .jl files are always checked out with LF regardless of OS or autocrlf. All .jl files in the index are already LF, so no files are renormalized.

Windows users, after pulling: re-checkout once so existing files get LF (commit/stash local changes first, this discards them):

git rm -r --cached -q .
git reset --hard

🤖 Generated with Claude Code

Git for Windows (core.autocrlf=true) checks notebooks out with CRLF, which
notebook-checks/sync_exercises.jl rejects. Pin .jl files to LF on all platforms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Once the build has completed, you can preview your PR at this URL: https://Kermit-UGent.github.io/ModSim/previews/PR90/

@bspanoghe
bspanoghe merged commit 5a6e81e into main Nov 19, 2026
2 checks passed
@bspanoghe
bspanoghe deleted the wclaer/gitattributes-lf branch November 19, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants