githooks: add docs prefix

In the process, update the README to point to how to add the githooks
folder. I had to go to aports to find the command.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7077>
This commit is contained in:
Pablo Correa Gómez
2025-09-25 19:55:27 +00:00
committed by The Friendly Merge Bot
parent 6adc515825
commit 22e782faae
2 changed files with 15 additions and 0 deletions
+6
View File
@@ -49,6 +49,12 @@ case "$lcp" in
device/*/*)
prefix="$(echo "$lcp" | cut -d/ -f3)"
;;
docs/*.adoc)
prefix="docs/$(basename $lcp .adoc)"
;;
docs/*)
prefix="docs"
;;
device/*)
# Multiple packages touched for same device category. More
# logic could be added to detect if they all belong to same