1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/.hooks
Tobias C. Berner 27bebbf28a framework: add hook to check indentation of conditionals of Mk/ files
This adds a further pre-commit hook to enforce indentations in Mk/*

Usage:
	> vim Mk/Uses/tcl.mk
	[add/remove some whitespaces between a `.` and an `if`]
	> git add Mk/Uses/tcl.mk
	> git commit -m "Mk/Uses/tcl.mk: test hook"
	[pre-commit] tcl.mk is not properly indented -- please use /tmp/check_indentations-tcl.mk.LShfR7TD48/tcl.mk which was created using Tools/scripts/indent_make_if.pl

Reminder: to make use of the hooks provided by the ports tree use the
following from [1]

    Add the prepare-commit-msg hook to the repository.

    To make use of it, the easiest way is to run:

      git config --add core.hooksPath .hooks

[1] bbc2474ef7

Reviewed by:		portmgr (rene)
Differential Revision:	https://reviews.freebsd.org/D35041
2022-04-25 19:34:55 +02:00
..
pre-commit.d framework: add hook to check indentation of conditionals of Mk/ files 2022-04-25 19:34:55 +02:00
pre-commit framework: create a sub-directory to support multiple pre-commit hooks 2022-04-24 12:24:28 +02:00
prepare-commit-msg .hooks/prepare-commit-msg: Enhance commit-msg hook. 2021-06-04 13:57:25 +02:00