Repository navigation
Commit 5977f93
committed
Pin text files to LF in the working tree, not just the repository
.gitattributes carried a bare 'text=auto', which normalizes to LF on
commit but leaves the checkout to follow core.autocrlf. That is set to
true system-wide by a default Git for Windows install, so Git intended
to rewrite every file as CRLF on the next checkout -- the state GitHub
Desktop was reporting.
Adding eol=lf fixes the checkout ending explicitly and takes precedence
over core.autocrlf, so the working tree stays LF on every machine
without asking contributors to change their global Git config. Python
and Blender read LF without complaint on Windows.
Binary formats are marked so Git never inspects or rewrites them.1 parent 1185867 commit 5977f93
1 file changed
Lines changed: 22 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments