Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Dec 2020 15:48:32 -0500
From:      Ed Maste <emaste@freebsd.org>
To:        freebsd-git <freebsd-git@freebsd.org>
Subject:   Re: Git commit message templates
Message-ID:  <CAPyFy2DqGDQ62nVDK55nrdRKObknEY8CygqQd_OGxfQ-rzBsjg@mail.gmail.com>
In-Reply-To: <CAPyFy2DveYMw6VyxT8QwOCNreHTyi6RoYX1EWEfysMEqCpcjZQ@mail.gmail.com>
References:  <CAPyFy2DveYMw6VyxT8QwOCNreHTyi6RoYX1EWEfysMEqCpcjZQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 16 Dec 2020 at 11:58, Ed Maste <emaste@freebsd.org> wrote:
>
> One outstanding Git transition item is work on commit message
> templates. We currently have an SVN template that lists the metadata
> fields we use, such as PR:, Reviewed by:, and such. Git supports local
> commit hooks (in .git/hooks) and I've made a trivial port of that to a
> git commit message preparation hook. I imagine we'd have these in the
> tree (in tools/tools/git/hooks/) and provide either documentation or a
> script to install or symlink them into the user's .git/hooks/
> directory.
>
> The current trivial hook is open in https://reviews.freebsd.org/D27633.

I've now committed this to tools/tools/git/hooks, and it can be
installed by placing it in .git/hooks of a doc/src/ports repository.
(If you're using worktrees then it's the .git directory of the main
repository, and the same hook will be used for all worktrees.)

To install it you could run:
% cp -p tools/tools/git/hooks/prepare-commit-msg .git/hooks/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPyFy2DqGDQ62nVDK55nrdRKObknEY8CygqQd_OGxfQ-rzBsjg>