Skip to content

Commit 2779f66

Browse files
dschogitster
authored andcommitted
t4051: mark supporting files as requiring LF-only line endings
The test t4051-diff-function-context.sh passes on Linux when core.autocrlf=true even without marking its support files as LF-only, but they fail when core.autocrlf=true in Git for Windows' SDK. The reason is that `grep ... >file.c.new` will keep CR/LF line endings on Linux (obviously treating CRs as if they were regular characters), but will be converted to LF-only line endings with MSYS2's grep that is used in Git for Windows. As we do not want to validate the way the available `grep` works, let's just mark the input as LF-only and move on. Signed-off-by: Johannes Schindelin <[email protected]> Reviewed-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 614f4f0 commit 2779f66

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

t/.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ t[0-9][0-9][0-9][0-9]/* -whitespace
66
/t4034/*/* eol=lf
77
/t4013/* eol=lf
88
/t4018/* eol=lf
9+
/t4051/* eol=lf
910
/t4100/* eol=lf
1011
/t4101/* eol=lf
1112
/t4109/* eol=lf

0 commit comments

Comments
 (0)