Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Sep 2023 04:12:36 +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@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 273574
           Summary: Committer's Guide: Change the way to install commit
                    message template hook
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Books & Articles
          Assignee: doc@FreeBSD.org
          Reporter: yasu@freebsd.org

Created attachment 244648
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D244648&action=
=3Dedit
Patch file

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.org/) =
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 each =
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' that
points to real hook file.
* For ports repository. set the path to look for hooks to '.hooks'. This is
because ports repository also provides some other hooks and creating symbol=
ic
link for each of them is bothersome.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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