Skip to contentSkip to conversation

.gitattributes: use 'dts' diff driver for *.dtso files

PATCH In review Masahiro Yamada 1 participant 2 messages Feb 19, 2023 – Feb 26, 2023 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 .gitattributes: use 'dts' diff driver for *.dtso files

Now we have the third extension for DT source files (overlay). Give the diff=dts attribute to *.dtso as well.

While I was here, I merged *.c and *.o into *.[ch] and added the SPDX-License-Identifier.

---

Changes in v3:
- Add SPDX-License-Identifier

Changes in v2:
- Slightly shorten the code

 .gitattributes | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
.gitattributes +4 -4
index 4b32eaa9571e..c9ba5bfc4036 100644
@@ -1,4 +1,4 @@
-*.c   diff=cpp
-*.h   diff=cpp
-*.dtsi diff=dts
-*.dts  diff=dts
+# SPDX-License-Identifier: GPL-2.0-only
+*.[ch] diff=cpp
+*.dts diff=dts
+*.dts[io] diff=dts
Signature · 1 line
2.34.1
#1 lore raw
Quoted 33 lines · Masahiro Yamada

Now we have the third extension for DT source files (overlay). Give the diff=dts attribute to *.dtso as well.

While I was here, I merged *.c and *.o into *.[ch] and added the SPDX-License-Identifier.

---

Changes in v3:
- Add SPDX-License-Identifier

Changes in v2:
- Slightly shorten the code

 .gitattributes | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
.gitattributes +4 -5
index 4b32eaa9571e..c9ba5bfc4036 100644
@@ -1,4 +1,4 @@
-*.c   diff=cpp
-*.h   diff=cpp
-*.dtsi diff=dts
-*.dts  diff=dts
+# SPDX-License-Identifier: GPL-2.0-only
+*.[ch] diff=cpp
+*.dts diff=dts
+*.dts[io] diff=dts
--
Quoted 2 lines

2.34.1

Applied to linux-kbuild.

Signature · 2 lines
Best Regards
Masahiro Yamada