[openwrt/openwrt] gitattributes: automatically convert dts file CRLF line endings to LF

LEDE Commits lede-commits at lists.infradead.org
Sat Nov 29 08:52:39 PST 2025


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/60521b6e5a345c7b279d32500e4be34c386e2c40

commit 60521b6e5a345c7b279d32500e4be34c386e2c40
Author: Shiji Yang <yangshiji66 at outlook.com>
AuthorDate: Sat Nov 29 17:06:28 2025 +0800

    gitattributes: automatically convert dts file CRLF line endings to LF
    
    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 at outlook.com>
    Link: https://github.com/openwrt/openwrt/pull/20978
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 .gitattributes | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.gitattributes b/.gitattributes
index ab4772b9c6..de9f6a66b5 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -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




More information about the lede-commits mailing list