libcamera/utils
Laurent Pinchart 35f045f978 utils: checkstyle.py: Skip title and trailers checkers for pre-commit
When running checkstyle.py in a pre-commit hook, there is either no
commit message at all (when committing staged changes as a new commit),
or the commit message comes from a previous commit being amended. In
either case, there's no new commit message yet, and thus nothing to
validate for the title and trailers checkers. The trailers checker, in
particular, will always flag an error, making all commits fail.

To fix that, just skip the two checkers during pre-commit.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Milan Zamazal <mzamazal@redhat.com>
Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
2024-08-12 15:44:22 +03:00
..
hooks hooks: pre-push: Disable interpretation of escape sequences 2024-01-09 15:39:04 +00:00
ipc libcamera: Drop file name from header comment blocks in templates 2024-05-09 23:31:14 +03:00
ipu3 libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
raspberrypi utils: raspberrypi: ctt: Add a maximum gain parameter for LSC 2024-06-13 11:02:39 +01:00
rkisp1 libcamera: Drop remaining file name from header comment blocks 2024-05-09 23:31:15 +03:00
tracepoints libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
tuning libtuning: agc: rkisp1: Increase y-target 2024-07-05 22:38:20 +02:00
abi-compat.sh utils: ABI Compatibility checker 2023-07-04 20:25:10 +01:00
checkstyle.py utils: checkstyle.py: Skip title and trailers checkers for pre-commit 2024-08-12 15:44:22 +03:00
gen-controls.py libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
gen-formats.py libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
gen-header.sh libcamera: Drop file name from header comment blocks in templates 2024-05-09 23:31:14 +03:00
gen-ipa-priv-key.sh libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
gen-ipa-pub-key.py libcamera: Drop remaining file name from header comment blocks 2024-05-09 23:31:15 +03:00
gen-version.sh utils: gen-version: Use posix compliant date 2024-07-25 09:57:54 +01:00
meson.build README, meson: Add dependency on ply and jinja2 for IPA interface generation 2020-11-11 19:23:16 +09:00
release.sh utils: Provide a release script 2022-10-13 12:40:24 +01:00
run-dist.sh build: Preserve upstream git versioning using meson dist 2021-10-19 13:14:54 +03:00
semver utils: semver: Add version helper 2022-10-13 12:40:23 +01:00
update-kernel-headers.sh update-kernel-headers: Add linux/udmabuf.h to headers to sync 2024-06-03 12:14:33 +03:00
update-mojo.sh utils: update-mojo.sh: Commit the mojo update 2024-01-09 15:39:05 +00:00