-
Notifications
You must be signed in to change notification settings - Fork 0
chore: update git attributes #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -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 | ||||||||||||||||||
| *.sln text eol=crlf | ||||||||||||||||||
| *.csproj text eol=crlf | ||||||||||||||||||
|
|
||||||||||||||||||
|
|
@@ -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 | ||||||||||||||||||
|
|
@@ -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 | ||||||||||||||||||
|
|
@@ -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
|
||||||||||||||||||
| .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
AI
Mar 4, 2026
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The repo’s
.editorconfigsetsend_of_line = crlffor[*], but this change forceseol=lffor 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 removeeol=lfhere (let editorconfig decide), or update.editorconfigwith matchingend_of_line = lfoverrides for these patterns (or globally).