<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ports/.hooks/pre-commit, 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-04-24T10:24:28Z</updated>
<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>
<entry>
<title>framework: add hook to detect whether new ports are hooked into the tree</title>
<updated>2022-04-13T03:29:33Z</updated>
<author>
<name>Tobias C. Berner</name>
<email>tcberner@FreeBSD.org</email>
</author>
<published>2022-01-24T19:53:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/ports/commit/?id=ea589ebd66157b2116e5c547d2af8ed94d10d715'/>
<id>urn:sha1:ea589ebd66157b2116e5c547d2af8ed94d10d715</id>
<content type='text'>
This pre-commit hook looks for newly added files matching
	foo/bar/Makefile

For these files, it is checking that a SUBDIR+=bar entry is
present in foo/Makefile.

Example run output:
	&gt; mkdir -p graphics/test_port
	&gt; touch graphics/test_port/Makefile
	&gt; git add graphics/test_port/Makefile
	&gt; git commit -m "graphics/test_port: not hooked into the build"
	[pre-commit] ERROR: Missing 'SUBDIR += test_port' in graphics/Makefile

This should hopefully help reduce the number of index breakages.

Differential Revision: https://reviews.freebsd.org/D34015
</content>
</entry>
</feed>
