[libcamera-devel] [PATCH 5/8] utils: update-mojo.sh: Commit the mojo update
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Fri Jan 5 11:41:29 CET 2024
On Fri, Jan 05, 2024 at 11:09:22AM +0100, Milan Zamazal wrote:
> Laurent Pinchart <laurent.pinchart at ideasonboard.com> writes:
>
> > Commit the mojo update with a standardized commit message. As mojo is
> > imported as-is without local modifications, this simplifies usage of the
> > update script.
> >
> > Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
> > ---
> > utils/update-mojo.sh | 20 ++++++++++++++------
> > 1 file changed, 14 insertions(+), 6 deletions(-)
> >
> > diff --git a/utils/update-mojo.sh b/utils/update-mojo.sh
> > index 25a280e04331..bb0f078e5b3f 100755
> > --- a/utils/update-mojo.sh
> > +++ b/utils/update-mojo.sh
> > @@ -72,9 +72,17 @@ EOF
> > echo "$readme" > utils/ipc/mojo/README
> > echo "$readme" > utils/ipc/tools/README
> >
> > -cat <<EOF
> > -------------------------------------------------------------
> > -mojo updated. Please review and up-port local changes before
> > -committing.
> > -------------------------------------------------------------
> > -EOF
> > +# Commit the update.
> > +git add utils/ipc/mojo/
> > +git add utils/ipc/tools/
> > +
> > +echo "utils: ipc: Update mojo
> > +
> > +Update mojo from commit
> > +
> > +$(git -C "${chromium_dir}" show --pretty='%H "%s"' --no-patch)
> > +
> > +from the Chromium repository.
> > +
> > +The update-mojo.sh script was used for this update." | \
> > +git commit -n -s -F -
>
> Why `-n'?
Because mojo doesn't comply with the Python coding style enforced by our
checkstyle.py. If someone runs checkstyle.py as a pre-commit hook, the
commit will fail.
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list