diff mbox series

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

Message ID 20230219142327.2309518-1-masahiroy@kernel.org
State Accepted
Commit ae41e0e41ba04b4b51641b504fb3b405aef7ec04
Headers show
Series [v3] .gitattributes: use 'dts' diff driver for *.dtso files | expand

Commit Message

Masahiro Yamada Feb. 19, 2023, 2:23 p.m. UTC
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.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---

Changes in v3:
  - Add SPDX-License-Identifier

Changes in v2:
  - Slightly shorten the code

 .gitattributes | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

Masahiro Yamada Feb. 26, 2023, 8:02 a.m. UTC | #1
On Sun, Feb 19, 2023 at 11:23 PM Masahiro Yamada <masahiroy@kernel.org> wrote:
>
> 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.
>
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> ---
>
> Changes in v3:
>   - Add SPDX-License-Identifier
>
> Changes in v2:
>   - Slightly shorten the code
>
>  .gitattributes | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/.gitattributes b/.gitattributes
> index 4b32eaa9571e..c9ba5bfc4036 100644
> --- a/.gitattributes
> +++ b/.gitattributes
> @@ -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
> --
> 2.34.1
>

Applied to linux-kbuild.
diff mbox series

Patch

diff --git a/.gitattributes b/.gitattributes
index 4b32eaa9571e..c9ba5bfc4036 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -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