[Bug 268024] .hooks/pre-commit.d/check_portepoch broken on lines affecting PORTEPOCH comments

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 29 Nov 2022 21:39:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268024

--- Comment #3 from Matthias Andree <mandree@FreeBSD.org> ---
(In reply to Tobias C. Berner from comment #2)
A diff comment line would not be matched by a *WORKING* grep regexp. The old
regexp was tripping grep up by ^\+PORTEPOCH, which caused GNU grep to ignore
this whole stuff. A comment would be ^-#.*PORTEPOCH or ^+#.*PORTEPOCH as basic
regular expression (grep without -E) and would not match.

-- 
You are receiving this mail because:
You are on the CC list for the bug.