libcamera/utils
Laurent Pinchart eeb435bbda utils: checkstyle.py: Rework commit message parsing
When parsing commit messages, the Commit class tries to optimize the
process by invoking git-show once only, extracting both the commit
author, title and modified files in one go. As a result, the derived
Amendment class needs to implement the commit parsing separately, as the
modified files need to be extracted differently for amendments (and the
commit ID also needs to be retrieved differently). Furthermore, because
of the list of named files, extracting the trailers needs to invoke
git-show separately.

Improve the situation by reworking the commit message parsing in three
steps. In the first step, use git-show to extract the commit ID, author,
title and body. In the second step, invoke git-interpret-trailers to
extract the trailers from the body that was previously extracted. The
third and final step extracts the list of modified files, using
different methods for regular commits and amendments.

This allows sharing code for the first two steps between the Commit and
Amendment classes, making the code simpler. The Commit class still
invokes git three times, while the Amendment class runs it three times
instead of four, improving performance slightly.

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:17 +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: Rework commit message parsing 2024-08-12 15:44:17 +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