Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Sep 2023 18:29:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        doc@FreeBSD.org
Subject:   [Bug 273574] Committer's Guide: Change the way to install commit message template hook
Message-ID:  <bug-273574-9-9hP4SLP19u@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-273574-9@https.bugs.freebsd.org/bugzilla/>
References:  <bug-273574-9@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273574

--- Comment #1 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/doc/commit/?id=3D2c37efcbbbe845eab97517b90d099a22b=
c32c67c

commit 2c37efcbbbe845eab97517b90d099a22bc32c67c
Author:     Yasuhiro Kimura <yasu@freebsd.org>
AuthorDate: 2023-09-07 18:27:39 +0000
Commit:     Sergio Carlavilla Delgado <carlavilla@FreeBSD.org>
CommitDate: 2023-09-07 18:27:39 +0000

    Committer's: Change the way to install commit template hook

    Currently commit message template hook is installed as following.

    * The one for src repository is also used for doc and ports.
    * The file is downloaded through web interface (https://cgit.freebsd.or=
g/)
and installed under .git/hooks.

    However,

    * Both doc and ports repositories have their own hooks inside them. So =
it
is obviously better to use them than using the one for src repository.
    * For src repository committer need to download and install hook file e=
ach
time it is updated.

    So change the way to install commit message template hook as following.

    * For doc and src repository, create symbolic link under '.git/hooks' t=
hat
points to real hook file.
    * For ports repository. set the path to look for hooks to '.hooks'. Thi=
s is
because ports repository also provides some other hooks and creating symbol=
ic
link for each of them is bothersome.

    PR:     273574

 .../en/articles/committers-guide/_index.adoc        | 21 +++++++++++++++++=
++--
 1 file changed, 19 insertions(+), 2 deletions(-)

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-273574-9-9hP4SLP19u>