gitattributes: mark test21.ok binary, drop test42.in
Commit:
https://github.com/vim/vim/commit/0084e4bd16d55353362aa10460fd5fdc51dda40a
Author: Christian Brabandt <[email protected]>
Date: Thu Jan 8 19:43:45 2026 +0000
gitattributes: mark test21.ok binary, drop test42.in
This change does 2 things:
1) Mark src/testdir/test21.ok as binary by git.
After 0ed8ba3079ea5f38, test21.ok was treated by Git as a text file
using LF line endings. However, the test explicitly checks handling of
files with mixed line endings, so it must retain its literal LF and CR
endings and must not be modified by Git. Therefore, mark it explicitly
as binary.
2) Remove src/testdir/test42.in
This test was converted to the new-style test in v8.2.1316 and was
therefore deleted. There is no need to keep gitattributes rules for a
non-existing file.
related: #19086
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/.gitattributes b/.gitattributes
index 15ba03f3e..46ac5f9cc 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,5 +1,3 @@
-src/testdir/test42.in diff
-
# The old test .ok files are expected to use LF line endings, even on Windows.
# In src/testdir/Make_mvc.mak and src/testdir/Make_ming.mak, the test result
# files .out are converted to LF line endings before being compared.
@@ -7,6 +5,10 @@ src/testdir/test42.in diff
# converted to CRLF, the comparison between .ok and .out will fail.
src/testdir/test*.ok text eol=lf
+# This ok file contains literal CR LF endings. Should not be touched by git,
+# so handle as binary
+src/testdir/test21.ok -text
+
# `vim.pot` is updated every time any of the *.c files are modified. And as it
# contains line numbers for strings from *.c files, inserting a line into a
# single .c file may cause many lines in the `vim.pot` file to be updated.
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1vdwAv-0038x2-RW%40256bit.org.