Repository navigation
Expand file tree
/
Copy path.gitattributes
More file actions
24 lines (22 loc) · 1.59 KB
/
Copy path.gitattributes
File metadata and controls
24 lines (22 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Normalise every text file to LF in the repository and in the working tree.
#
# Why: without this, only *.sh and scripts/* were pinned — 57 of 4271 tracked files — and an editor
# that writes CRLF (which is what most tooling does on Windows) turned a one-line change into a
# whole-file diff. Measured on Windows 11 2026-08-03 with core.autocrlf=false: a one-line version
# bump in Directory.Build.props reported 104 changed lines, and a 16-line edit to
# XEReactClientFixture.cs reported 486. Both were caught only by reading `git diff --stat` and
# disbelieving it; uncaught, 590 lines of pure whitespace churn would have ridden into RC commits.
# `text=auto` lets git detect binaries, so images and archives are unaffected.
* text=auto eol=lf
# Keep shell scripts LF-only so they run under bash on Windows checkouts
# (CRLF makes bash fail with "set: invalid option name pipefail").
*.sh text eol=lf
scripts/* text eol=lf
# Generated output: collapsed in GitHub diffs and left out of language stats. Never hand-merge a conflict in
# these; take either side and regenerate (docs/wiki/13-testing-and-validation.md, "Generated and sorted files");
# scripts/regen-after-merge.sh regenerates and stages the client, the license manifest and the sorted locales.
# No `-diff`: a regenerated file must still show its real change in review.
XE-Local-AI-Engine.Client.React/src/core/api/generated/** linguist-generated=true
XE-Local-AI-Engine.Client.React/openapi/v1.json linguist-generated=true
XE-Local-AI-Engine.Client.React/src/routeTree.gen.ts linguist-generated=true
**/Migrations/*.Designer.cs linguist-generated=true