-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitattributes
More file actions
43 lines (39 loc) · 1.95 KB
/
Copy path.gitattributes
File metadata and controls
43 lines (39 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Auto detect text files and perform LF normalization
* text=auto
# Template fixtures are byte-significant for golden comparisons: their raw newlines flow
# into rendered output. Pin them to LF on every platform so Windows checkouts don't smudge
# them to CRLF and break fixture-derived golden tests (goldens are read with \r\n -> \n).
*.heddle text eol=lf
# Checked-in golden / fixture / snapshot data is byte-compared against LF engine output on BOTH
# ubuntu-latest and windows-latest CI. Some comparisons are verbatim (raw Assert.Equal, no \r\n
# normalization); rendered output is LF because the .heddle templates above are LF-pinned. With
# core.autocrlf=true a Windows checkout would smudge these to CRLF and diverge from the LF actual
# output — failing on Windows while Linux (LF everywhere) passes. Pin every such root to LF so the
# byte comparison holds identically on both platforms regardless of the developer's autocrlf setting.
# All files under these roots are text (verified: no binaries). New golden/fixture roots MUST be
# added here in the same change that introduces them — see docs/spec/common/testing-standards.md.
samples/**/golden/** text eol=lf
src/Heddle.Tests/TestTemplate/** text eol=lf
src/Heddle.Tests/Streaming/** text eol=lf
src/Heddle.Generator.Tests/Snapshots/** text eol=lf
src/Heddle.Generator.IntegrationTests/Fixtures/** text eol=lf
src/Heddle.LanguageServices.Tests/Corpus/** text eol=lf
src/Heddle.Demo.Wasm/contract-fixtures/** text eol=lf
# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union
# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain