<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ports/.hooks/pre-commit.d, branch release/12.4.0</title>
<subtitle>FreeBSD ports tree</subtitle>
<id>https://cgit-dev.freebsd.org/ports/atom?h=release%2F12.4.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/ports/atom?h=release%2F12.4.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/ports/'/>
<updated>2022-08-23T13:08:11Z</updated>
<entry>
<title>framework: add new hook to validate MOVED lines</title>
<updated>2022-08-23T13:08:11Z</updated>
<author>
<name>Tobias C. Berner</name>
<email>tcberner@FreeBSD.org</email>
</author>
<published>2022-08-23T13:01:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/ports/commit/?id=951773c013b9bfc73bba33617757660ddc34ebce'/>
<id>urn:sha1:951773c013b9bfc73bba33617757660ddc34ebce</id>
<content type='text'>
A possible error message will look like:

[pre-commit] ERROR: MOVED contains errors.
                    Please apply the suggested changes:

17537: date going backwards from 2022-08-20 to 2022-08-13 from this line
17538: date going backwards from 2022-08-20 to 2022-08-13 to this line

Reviewed by:		bapt
Differential Revision:	https://reviews.freebsd.org/D35042
</content>
</entry>
<entry>
<title>framework: add hook to notify about lingering 'Created by' lines</title>
<updated>2022-07-20T13:09:29Z</updated>
<author>
<name>Tobias C. Berner</name>
<email>tcberner@FreeBSD.org</email>
</author>
<published>2022-07-20T13:08:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/ports/commit/?id=242b704fb593876a9945cd5888e1f7804df3f0d3'/>
<id>urn:sha1:242b704fb593876a9945cd5888e1f7804df3f0d3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>framework: add hook to check indentation of conditionals of Mk/ files</title>
<updated>2022-04-25T17:34:55Z</updated>
<author>
<name>Tobias C. Berner</name>
<email>tcberner@FreeBSD.org</email>
</author>
<published>2022-04-24T10:54:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/ports/commit/?id=27bebbf28a72ab5286623603611c5c0e39b6a4c8'/>
<id>urn:sha1:27bebbf28a72ab5286623603611c5c0e39b6a4c8</id>
<content type='text'>
This adds a further pre-commit hook to enforce indentations in Mk/*

Usage:
	&gt; vim Mk/Uses/tcl.mk
	[add/remove some whitespaces between a `.` and an `if`]
	&gt; git add Mk/Uses/tcl.mk
	&gt; 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] bbc2474ef7a65eb8561c8ecf7af80c2bfed1f248

Reviewed by:		portmgr (rene)
Differential Revision:	https://reviews.freebsd.org/D35041
</content>
</entry>
<entry>
<title>framework: create a sub-directory to support multiple pre-commit hooks</title>
<updated>2022-04-24T10:24:28Z</updated>
<author>
<name>Tobias C. Berner</name>
<email>tcberner@FreeBSD.org</email>
</author>
<published>2022-04-24T10:11:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/ports/commit/?id=4e21a051bb0aa1e6ee77a30f5803d5ad6c49d578'/>
<id>urn:sha1:4e21a051bb0aa1e6ee77a30f5803d5ad6c49d578</id>
<content type='text'>
</content>
</entry>
</feed>
