[libcamera-devel] [PATCH/RFC 10/11] licenses: Add SPDX headers to the git commit hook scripts

Laurent Pinchart laurent.pinchart at ideasonboard.com
Thu Feb 13 16:36:34 CET 2020


Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
 utils/hooks/post-commit | 2 ++
 utils/hooks/pre-commit  | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/utils/hooks/post-commit b/utils/hooks/post-commit
index c8b1739a8d6a..f28cbd8d2c6c 100755
--- a/utils/hooks/post-commit
+++ b/utils/hooks/post-commit
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 # Execute the checkstyle script after committing any code. This allows the
 # commit to succeed, but ensures that the developer is aware of any potential
 # issues immediately, and can resolve them and fix rapidly with:
diff --git a/utils/hooks/pre-commit b/utils/hooks/pre-commit
index 47fcbc812d68..7a4cb6257dec 100755
--- a/utils/hooks/pre-commit
+++ b/utils/hooks/pre-commit
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 # Execute the checkstyle script before committing any code. This will fail the
 # commit in case of style issues, ensuring that the developer will notice them.
 # The pre-commit hook can be bypassed with git commit -n to ignore selective
-- 
Regards,

Laurent Pinchart



More information about the libcamera-devel mailing list