Commit Graph

5 Commits

Author SHA1 Message Date
Mathieu Arnold
5147b3b5e1
.hooks/prepare-commit-msg: Enhance commit-msg hook.
If a single port is updated, the hook now pre-fills in an appropriate
subject line.
2021-06-04 13:57:25 +02:00
Mathieu Arnold
d744a8de42
.hooks/prepare-commit-msg: Cleanup.
Instead of writing everything in the new commit template all at once in
a large here document, do it cleanly one command at a time.
2021-06-04 13:57:19 +02:00
Mathieu Arnold
5b7c178565
git hooks: Rework authorship instructions.
While there, move them upwards so they are not hidden at the far end of
the template.
2021-04-22 11:50:30 +02:00
Mateusz Piotrowski
37dfa4eeea
git hooks: Adjust hooks for the ports tree
- Capitalize the topic line: this way the example is consistent with the
  desired style.
- Update the description of MFH.
- Point the Pull Request field to the ports repo on GitHub.

Reviewed by:	mat, bapt
Differential Revision:	https://reviews.freebsd.org/D29861
2021-04-22 11:48:22 +02:00
Mathieu Arnold
bbc2474ef7
Add the prepare-commit-msg hook to the repository.
To make use of it, the easiest way is to run:

  git config --add core.hooksPath .hooks

Discussed with:	bapt
2021-04-20 11:58:35 +02:00