[PATCH] utils: checkstyle.py: Warn when no valid Signed-off-by line is found

Milan Zamazal mzamazal at redhat.com
Fri Aug 16 15:52:48 CEST 2024


Kieran Bingham <kieran.bingham at ideasonboard.com> writes:

> I always keep the checkstyle hooks as a post-commit hook. I find this the
> best way (for me) as it will always run while developing, and provide me
> with fast feedback - but not prevent me from continuing in my work.
>
> 'cp ./utils/hooks/post-commit .git/hooks/'
>
> Always running, all of the time is a great way IMO to know it's been run
> before submitting ;-)

The output may be hidden if using git porcelains with their own UIs.
The following modification of the post-commit hook helps when using
Magit:

  if ! ./utils/checkstyle.py; then
     emacsclient -e '(magit-process-buffer)'
  fi



More information about the libcamera-devel mailing list