diff --git a/.gitattributes b/.gitattributes index 3df8366..a0bea35 100644 --- a/.gitattributes +++ b/.gitattributes @@ -24,12 +24,6 @@ # them to avoid a spurious whole-file diff every time the solution is opened. *.sln text eol=crlf -# Captured git diff output, kept exactly as git emitted it. A patch fixture mixes LF -# structural lines with CRLF content lines by design, testing that the parser leaves -# carriage returns alone, so eol normalization above would corrupt the very bytes the -# test asserts on. -GitIntegration.Test/Fixtures/patch-*.txt -text - ############################### # Git Large File System (LFS) # ############################### diff --git a/GitIntegration.Test/Fixtures/.gitattributes b/GitIntegration.Test/Fixtures/.gitattributes new file mode 100644 index 0000000..9b58f77 --- /dev/null +++ b/GitIntegration.Test/Fixtures/.gitattributes @@ -0,0 +1,8 @@ +# Captured git diff output, kept exactly as git emitted it. A patch fixture mixes LF +# structural lines with CRLF content lines by design, testing that the parser leaves +# carriage returns alone, so the repository's eol normalization would corrupt the very +# bytes the test asserts on. +# +# This lives here rather than in the root .gitattributes because ktsu.Sdk regenerates the +# root file on every build, which would silently drop the rule. +patch-*.txt -text