]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
gitattributes: automatically convert dts file CRLF line endings to LF 20978/head
authorShiji Yang <yangshiji66@outlook.com>
Sat, 29 Nov 2025 09:06:28 +0000 (17:06 +0800)
committerRobert Marko <robimarko@gmail.com>
Sat, 29 Nov 2025 16:52:35 +0000 (17:52 +0100)
It seems that some developers prefer to use the Windows OS to add new
device support. Add new attributes for device tree files so that the
CRLF line endings can be automatically normalized to LF.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/20978
Signed-off-by: Robert Marko <robimarko@gmail.com>
.gitattributes

index ab4772b9c618d6b16f9c87a4509d08633c78a46c..de9f6a66b586620d57c328e181e908a070053965 100644 (file)
@@ -1,2 +1,4 @@
 * -text
 *.patch whitespace=-indent-with-non-tab,-space-before-tab,-tab-in-indent,-trailing-space
+*.dts text eol=lf
+*.dts[io] text eol=lf