From: Patrick Steinhardt Date: Sat, 6 Dec 2025 11:47:34 +0000 (+0100) Subject: gitattributes: disable blank-at-eof errors for clar test expectations X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84071a6deac84fdb99d2415900d7713829de393c;p=thirdparty%2Fgit.git gitattributes: disable blank-at-eof errors for clar test expectations The clar unit testing framework carries a couple of files that contain expected output for its self-tests. Some of these files expectedly end with a blank line at the end of the file, which Git would consider to be a whitespace error by default. Teach our gitattributes to ignore those errors. Suggested-by: Junio C Hamano Signed-off-by: Patrick Steinhardt Signed-off-by: Junio C Hamano --- diff --git a/.gitattributes b/.gitattributes index 32583149c2..e416c37205 100644 --- a/.gitattributes +++ b/.gitattributes @@ -17,3 +17,4 @@ CODE_OF_CONDUCT.md -whitespace /Documentation/gitk.adoc conflict-marker-size=32 /Documentation/user-manual.adoc conflict-marker-size=32 /t/t????-*.sh conflict-marker-size=32 +/t/unit-tests/clar/test/expected/* whitespace=-blank-at-eof