[libcamera-devel] [PATCH 5/8] utils: update-mojo.sh: Commit the mojo update

Milan Zamazal mzamazal at redhat.com
Fri Jan 5 11:09:22 CET 2024


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'?



More information about the libcamera-devel mailing list