freebsd-ports/.hooks
Matthias Andree 414b5c6164 .hooks/pre-commit.d: unbreak EPOCH checker
dns/dnsmasq-devel as of 2.88rc3 contained a comment about PORTEPOCH,
which I removed in the 2.88rc5. This tripped up the checker because
it assumed that if git yielded lines containing PORTEPOCH, then it
must have been PORTEPOCH= or similar lines. Untrue in my case.

It was printing
[pre-commit] dropped PORTEPOCH  in dns/dnsmasq-devel/Makefile

To solve, only pick out PORTEPOCH diffs that are actual assignments,
and if the new PORTEPOCH is empty, and the old one is also,
ignore this condition (previously we would exit 1, which is bogus).

Also, grep without -E should not have \ in front of - or +.
FreeBSD 13.1 grep is fine, but GNU grep ignores those backslashes
noisily (and I have prepended it to PATH) and emits warnings.

PR:		268024
2022-12-18 09:58:17 +01:00
..
pre-commit.d .hooks/pre-commit.d: unbreak EPOCH checker 2022-12-18 09:58:17 +01: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