| 1 | # Everything is LF in the working tree, on Windows too: a CRLF checkout breaks |
| 2 | # bash scripts and the tests that compare files byte for byte. |
| 3 | * text=auto eol=lf |
| 4 | |
| 5 | # Shell scripts must keep LF endings everywhere: a CRLF checkout on |
| 6 | # Windows breaks bash. |
| 7 | *.sh text eol=lf |
| 8 | /scripts/* text eol=lf |
| 9 | /tests/sftp/run text eol=lf |
| 10 | |
| 11 | # Go files too: a CRLF checkout on Windows breaks the tests that compare |
| 12 | # them byte for byte (limaembed's copy of limactl's hostagent command). |
| 13 | *.go text eol=lf |
| 14 | |
| 15 | # Checked byte for byte by scripts/licenses --check. |
| 16 | /THIRD_PARTY_LICENSES text eol=lf |
| 17 | |
| 18 | # Images are binary, and the recorded outputs and fuzz corpora of the tests |
| 19 | # are never converted. |
| 20 | *.png binary |
| 21 | *.gz binary |
| 22 | /internal/*/testdata/** -text |
| 23 | /tests/sftp/testdata/** -text |
| 24 | |
| 25 | # Byte for byte as upstream and the patches have them: no line ending |
| 26 | # conversion, or the patches stop applying and the sync check fails. |
| 27 | /third_party/** -text -whitespace |
| 28 | /patches/** -text -whitespace |
| 29 | /ui/vendor/** -text -whitespace |
| 30 | # Build patches retain the upstream context whitespace required by patch(1). |
| 31 | /scripts/guest-os/sshfs-openwith.patch -text -whitespace |