Commit fc65d72
chore: add text=auto catch-all to .gitattributes (#1051)
Adds `* text=auto` as the first line of `.gitattributes` to normalize
all text files to LF in the repo and OS-native line endings on checkout.
This silences the CRLF conversion warnings on Windows (e.g. `warning: LF
will be replaced by CRLF the next time Git touches it`) for files not
already covered by the existing `eol=lf`/`eol=crlf` overrides.
## Changes
- Add `* text=auto` catch-all rule before the existing
Go/shell/Docker/PowerShell overrides
- Existing `eol=lf` and `eol=crlf` overrides continue to take precedence
## Test plan
- Verified `git add -A && git diff --staged --stat` no longer produces
CRLF warnings for `.md` and other text files on Windows
---------
Signed-off-by: Aurelio <19254254+Aureliolo@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent 55f5206 commit fc65d72
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
0 commit comments