]> git.baikalelectronics.ru Git - arm-tf.git/commit
feat(git-hooks): add pre-commit hook
authorMaksims Svecovs <maksims.svecovs@arm.com>
Thu, 9 Feb 2023 16:48:34 +0000 (16:48 +0000)
committerMaksims Svecovs <maksims.svecovs@arm.com>
Thu, 9 Feb 2023 17:27:25 +0000 (17:27 +0000)
commitcf9346cb83804feb083b56a668eb0a462983e038
treeaae5864a14eddb99e132e62e499eaf69f81dafc4
parent35f81474fb5982046ed57ae8fe8cbad7463cb55c
feat(git-hooks): add pre-commit hook

Adds a pre-commit git hook to keep track of copyright year.
Checks staged files for Arm copyright header and suggests a change if
the year is outdated. Works with both single-year format and
from_year-to_year format.

Signed-off-by: Maksims Svecovs <maksims.svecovs@arm.com>
Change-Id: If81a0b9f5e047ec0ac401c7cf1792b9da6644926
.husky/pre-commit [new file with mode: 0755]
.husky/pre-commit.copyright [new file with mode: 0755]