From 60521b6e5a345c7b279d32500e4be34c386e2c40 Mon Sep 17 00:00:00 2001 From: Shiji Yang Date: Sat, 29 Nov 2025 17:06:28 +0800 Subject: [PATCH] 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 Link: https://github.com/openwrt/openwrt/pull/20978 Signed-off-by: Robert Marko --- .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 -- 2.30.2