From: Shiji Yang Date: Sat, 29 Nov 2025 09:06:28 +0000 (+0800) Subject: gitattributes: automatically convert dts file CRLF line endings to LF X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=60521b6e5a345c7b279d32500e4be34c386e2c40;p=openwrt%2Fstaging%2Fxback.git 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 --- 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