-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitattributes
More file actions
18 lines (16 loc) · 1.07 KB
/
Copy path.gitattributes
File metadata and controls
18 lines (16 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Line endings are pinned here rather than left to each contributor's core.autocrlf, because
# CI runs `dotnet format whitespace --verify-no-changes` on Linux: if a blob's endings depend on
# who committed it, that gate passes or fails based on the author's machine instead of the code.
# Every tracked text file is already LF, and .editorconfig's end_of_line matches.
* text=auto eol=lf
# Spreadsheet fixtures are ZIP (xlsx/xlsm/xlsb) and CFB (xls) containers. Never let text=auto's
# heuristic touch them — a single LF/CRLF substitution inside a compressed stream or an OLE sector
# corrupts the file, and the parsers would then be tested against garbage that git created.
*.xlsx binary
*.xlsm binary
*.xlsb binary
*.xls binary
# The benchmark CSV fixture is deliberately left under the rule above rather than marked -text:
# its blob is already LF, and -text would freeze whatever a contributor's working tree happens to
# hold, which on a machine with core.autocrlf=true means silently rewriting it to CRLF. Tests that
# actually cover terminator handling build their own fixtures in code.