Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 49 additions & 51 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
* text=auto

#### C# files ####
*.cs text diff=csharp
*.cshtml text diff=html
*.csx text diff=csharp
*.cs text eol=lf diff=csharp
*.cshtml text eol=lf diff=html
*.csx text eol=lf diff=csharp
Comment on lines +5 to +7
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The repo’s .editorconfig sets end_of_line = crlf for [*], but this change forces eol=lf for C# source files. That mismatch can cause perpetual line-ending churn (editors write CRLF, git normalizes to LF) and noisy diffs. Consider aligning one source of truth: either remove eol=lf here (let editorconfig decide), or update .editorconfig with matching end_of_line = lf overrides for these patterns (or globally).

Suggested change
*.cs text eol=lf diff=csharp
*.cshtml text eol=lf diff=html
*.csx text eol=lf diff=csharp
*.cs text diff=csharp
*.cshtml text diff=html
*.csx text diff=csharp

Copilot uses AI. Check for mistakes.
*.sln text eol=crlf
*.csproj text eol=crlf

Expand All @@ -18,17 +18,17 @@
*.bat text eol=crlf
*.cmd text eol=crlf
*.coffee text
*.css text diff=css
*.htm text diff=html
*.html text diff=html
*.css text eol=lf diff=css
*.htm text eol=lf diff=html
*.html text eol=lf diff=html
*.inc text
*.ini text
*.js text
*.mjs text
*.cjs text
*.json text
*.jsx text
*.less text
*.js text eol=lf
*.mjs text eol=lf
*.cjs text eol=lf
*.json text eol=lf
*.jsx text eol=lf
*.less text eol=lf
*.ls text
*.map text -diff
*.od text
Expand All @@ -38,32 +38,32 @@
*.ps1 text eol=crlf
*.py text diff=python
*.rb text diff=ruby
*.sass text
*.sass text eol=lf
*.scm text
*.scss text diff=css
*.scss text eol=lf diff=css
*.sh text eol=lf
.husky/* text eol=lf
*.sql text
*.styl text
*.tag text
*.ts text
*.tsx text
*.xml text
*.xhtml text diff=html
*.ts text eol=lf
*.tsx text eol=lf
*.xml text eol=lf
*.xhtml text eol=lf diff=html

# Docker
Dockerfile text
Dockerfile text eol=lf

# Documentation
*.ipynb text eol=lf
*.markdown text diff=markdown
*.md text diff=markdown
*.mdwn text diff=markdown
*.mdown text diff=markdown
*.mkd text diff=markdown
*.mkdn text diff=markdown
*.mdtxt text
*.mdtext text
*.markdown text eol=lf diff=markdown
*.md text eol=lf diff=markdown
*.mdwn text eol=lf diff=markdown
*.mdown text eol=lf diff=markdown
*.mkd text eol=lf diff=markdown
*.mkdn text eol=lf diff=markdown
*.mdtxt text eol=lf
*.mdtext text eol=lf
*.txt text
AUTHORS text
CHANGELOG text
Expand Down Expand Up @@ -93,32 +93,32 @@ TODO text
*.mustache text
*.njk text
*.phtml text
*.svelte text
*.tmpl text
*.tpl text
*.twig text
*.vue text
*.svelte text eol=lf
*.tmpl text eol=lf
*.tpl text eol=lf
*.twig text eol=lf
*.vue text eol=lf

# Configs
*.cnf text
*.conf text
*.config text
.editorconfig text
.env text
.gitattributes text
.gitconfig text
.htaccess text
*.lock text -diff
.env text eol=lf
.gitattributes text eol=lf
.gitconfig text eol=lf
.htaccess text eol=lf
Comment on lines +107 to +110
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These config patterns are now forced to eol=lf, but .editorconfig currently enforces end_of_line = crlf for [*]. That conflict can cause frequent line-ending reformatting (especially for .env / .htaccess which are often edited directly) and noisy diffs. Either add matching .editorconfig overrides for these files or avoid pinning eol here.

Suggested change
.env text eol=lf
.gitattributes text eol=lf
.gitconfig text eol=lf
.htaccess text eol=lf
.env text
.gitattributes text eol=lf
.gitconfig text eol=lf
.htaccess text

Copilot uses AI. Check for mistakes.
*.lock text
package.json text eol=lf
package-lock.json text eol=lf -diff
pnpm-lock.yaml text eol=lf -diff
.prettierrc text
*.toml text
*.yaml text
*.yml text
browserslist text
Makefile text
makefile text
package-lock.json text eol=lf
pnpm-lock.yaml text eol=lf
Comment on lines +111 to +114
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This re-enables diffs for *.lock files (previously -diff). Lockfiles are often large and auto-generated, so showing full diffs can make PRs hard to review and slow down tooling. If the goal is only line-ending normalization, keep -diff while adding the desired eol (e.g., text eol=lf -diff) for lockfile patterns.

Copilot uses AI. Check for mistakes.
.prettierrc text eol=lf
*.toml text eol=lf
*.yaml text eol=lf
*.yml text eol=lf
browserslist text eol=lf
Makefile text eol=lf
makefile text eol=lf
# Fixes syntax highlighting on GitHub to allow comments
tsconfig.json linguist-language=JSON-with-Comments

Expand All @@ -139,11 +139,9 @@ tsconfig.json linguist-language=JSON-with-Comments
*.png binary
*.psb binary
*.psd binary
# SVG treated as an asset (binary) by default.
*.svg text
# If you want to treat it as binary,
# use the following line instead.
# *.svg binary
# SVG is XML-based text; treat as text with LF line endings.
*.svg text eol=lf

*.svgz binary
*.tif binary
*.tiff binary
Expand Down