This adds a hook to quickly check newly added/modified lines in MOVED -- it is a less
complete check than MOVED.awk, but runs a lot quicker.
Example:
> git diff --cached MOVED diff --git a/MOVED b/MOVED index e12c693bd6ca..04c4a0ccde13 100644 --- a/MOVED +++ b/MOVED @@ -17136,3 +17136,9 @@ devel/ros-rosinstall||2022-04-20|Has expired: Upstream has archived the project devel/py-aiorpcX-legacy|devel/py-aiorpcX|2022-04-20|Has expired: Legacy port is no longer required, please use devel/py-aiorpcX instead net/kalarmcal|deskutils/kalarm|2022-04-21|Packages were merged math/py-gmpy2-devel|math/py-gmpy2|2022-04-22|No more need for the -devel port, py-gmpy2 is at latest +category/port|category/port|2022-04-23|Test +category/port|category/port|2022-04-23| +category/port|category/port|2022-4-23|Test +category/port||2022-04-23|Test +|category/port|2022-04-23|Test +category/port||category/port|2022-04-23|Test > git commit -m "test" [pre-commit] ERROR: MOVED lines: category/port|category/port|2022-04-23|Test category/port|category/port|2022-04-23| category/port|category/port|2022-4-23|Test category/port||2022-04-23|Test |category/port|2022-04-23|Test category/port||category/port|2022-04-23|Test is/are invalid -- please run Tools/scripts/MOVEDlint.awk