[PATCH v2 3/3] gitattributes: disable blank-at-eof errors for clar test expectations
- From
Patrick Steinhardt <ps@pks.im>
- Date
- Dec 6, 2025, 11:47 UTC
- Message-ID
- <20251206-b4-pks-clar-update-v2-3-9a14b10c1a36@pks.im>
- In-Reply-To
- <20251206-b4-pks-clar-update-v2-0-9a14b10c1a36@pks.im>
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 <gitster@pobox.com> Signed-off-by: Patrick Steinhardt <ps@pks.im> --- .gitattributes | 1 + 1 file changed, 1 insertion(+)
diff --git a/.gitattributes b/.gitattributes index 700743c3f5..38b1c52fe0 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
-- 2.52.0.239.gd5f0c6e74e.dirty