[Sound-open-firmware] [PATCH] sof: add git pre- and post-commit hooks
Liam Girdwood
liam.r.girdwood at linux.intel.com
Tue Jan 23 22:09:27 CET 2018
On Mon, 2018-01-22 at 08:32 -0600, Pierre-Louis Bossart wrote:
> Use Linux checkpatch.pl to check for style problems on each commit
> rather than waste time on mailing lists.
>
> The hooks are installed by default with autogen.sh if there are
> no pre-existing hooks, e.g. if a global template is used.
>
> Commits can still be forced by using git commit -n (or --no-verify) if
> you absolutely need to bypass checkpatch.pl in a work branch.
>
> Note that both checkpatch.pl and spelling.txt are provided under
> a GPL v2 license.
>
> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart at linux.intel.com>
> ---
> autogen.sh | 6 +
> scripts/checkpatch.pl | 6448 ++++++++++++++++++++++++++++++++++++++
> scripts/const_structs.checkpatch | 4 +
> scripts/sof-post-commit-hook.sh | 4 +
> scripts/sof-pre-commit-hook.sh | 4 +
> scripts/spelling.txt | 1254 ++++++++
> 6 files changed, 7720 insertions(+)
> create mode 100755 scripts/checkpatch.pl
> create mode 100644 scripts/const_structs.checkpatch
> create mode 100755 scripts/sof-post-commit-hook.sh
> create mode 100755 scripts/sof-pre-commit-hook.sh
> create mode 100644 scripts/spelling.txt
Applied.
Thanks
Liam
More information about the Sound-open-firmware
mailing list