FreeBSD Bugzilla – Attachment 244648 Details for
Bug 273574
Committer's Guide: Change the way to install commit message template hook
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch file
Committer-s-Guide-Change-the-way-to-install-commit-m.patch (text/plain), 2.16 KB, created by
Yasuhiro Kimura
on 2023-09-05 04:12:36 UTC
(
hide
)
Description:
Patch file
Filename:
MIME Type:
Creator:
Yasuhiro Kimura
Created:
2023-09-05 04:12:36 UTC
Size:
2.16 KB
patch
obsolete
>From b3fc62830bb1e79d1a4cc15f667a859853d36eb8 Mon Sep 17 00:00:00 2001 >From: Yasuhiro Kimura <yasu@utahime.org> >Date: Tue, 5 Sep 2023 12:44:54 +0900 >Subject: [PATCH] Committer's Guide: Change the way to install commit message > 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.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 symbolic link for each of them is bothersome. >--- > .../en/articles/committers-guide/_index.adoc | 21 +++++++++++++++++-- > 1 file changed, 19 insertions(+), 2 deletions(-) > >diff --git a/documentation/content/en/articles/committers-guide/_index.adoc b/documentation/content/en/articles/committers-guide/_index.adoc >index b2b1e4da4e..2099188ff0 100644 >--- a/documentation/content/en/articles/committers-guide/_index.adoc >+++ b/documentation/content/en/articles/committers-guide/_index.adoc >@@ -395,10 +395,27 @@ Again, note that `gitrepo.freebsd.org` has been canonicalized to `repo.freebsd.o > > * Install commit message template hook: > + >+For doc repository: >++ >+[source,shell] >+.... >+% cd .git/hooks >+% ln -s ../../.hooks/prepare-commit-msg >+.... >++ >+For ports repository: >++ >+[source,shell] >+.... >+% git config --add core.hooksPath .hooks >+.... >++ >+For src repository: >++ > [source,shell] > .... >-% fetch https://cgit.freebsd.org/src/plain/tools/tools/git/hooks/prepare-commit-msg -o .git/hooks >-% chmod 755 .git/hooks/prepare-commit-msg >+% cd .git/hooks >+% ln -s ../../tools/tools/git/hooks/prepare-commit-msg > .... > > [[admin-branch]] >-- >2.42.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 273574
: 244648