Skip to content

Normalize line endings to LF with a .gitattributes - #14

Merged
abrignoni merged 1 commit into
mainfrom
chore/line-endings
Sep 3, 2026
Merged

abrignoni merged 1 commit into
mainfrom
chore/line-endings

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Adds a .gitattributes that keeps text files LF in the repository and on checkout, matching iLEAPP and ALEAPP, and renormalizes the 18 files that were CRLF. Wheels, the ONNX model and images are marked -text so normalization can never touch them.

The repo was 40 LF files to 18 CRLF, none mixed. The CRLF set is the core modules plus the README, spec, installer script and pyproject, and this is line endings only: git diff --ignore-cr-at-eol against main is empty apart from the new file. The suite passes on the renormalized tree.

Editors keep LF once it is checked out that way, and PowerShell, Inno Setup and Python all read it.

🤖 Generated with Claude Code

40 tracked text files were LF and 18 were CRLF, none mixed, so every edit
made from a Mac or Linux had to detect and preserve the ending of the file
it touched or produce a whole-file diff. iLEAPP and ALEAPP are LF with no
attributes file; GLEAPP gets one so the rule is enforced on commit and on
checkout rather than remembered.

`* text=auto eol=lf` normalizes text; wheels, the ONNX model and images are
marked -text so normalization can never touch them. The 18 CRLF files are
renormalized here. Content is unchanged: git diff --ignore-cr-at-eol
against the parent is empty apart from .gitattributes itself.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@abrignoni
abrignoni merged commit f187753 into main Sep 3, 2026
11 checks passed
@abrignoni
abrignoni deleted the chore/line-endings branch September 3, 2026 05:01
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.

1 participant