1
0
mirror of https://gitlab.com/bzip2/bzip2.git synced 2026-10-23 09:48:56 +03:00

Windows: Prevent git from changing line endings on test files

The sample3.ref test file is plain ascii, which means that Git on
Windows will automatically convert the line endings from \n to \r\n.
This of course causes a test to fail.

Added a .gitattributes file that requires Git to treat *.ref files as
binary, so it won't convert line endings.
This commit is contained in:
Micah Snyder
2021-07-10 12:33:16 -07:00
parent 99459efa0b
commit 857df933cb

16
.gitattributes vendored Normal file
View File

@@ -0,0 +1,16 @@
# Handle line endings automatically for files detected as text
# and leave all files detected as binary untouched.
* text=auto
#
# The above will handle all files NOT found below
#
# Files that should be left untouched (binary is macro for -text -diff)
*.ref binary
#
# Exclude files from exporting
#
.gitattributes export-ignore
.gitignore export-ignore