4 ms·
Good idea. I'm adding your idea now to my open source git commit template: https://github.com/joelparkerhenderson/git-commit-template https://github.com/joelpar
by jph 5y ago
Good idea. I'm adding your idea now to my open source git commit template: https://github.com/joelparkerhenderson/git-commit-template https://github.com/joelparkerhenderson/git-commit-template
What you're suggesting is essentially a "git trailer". A trailer can be automatically parsed by git (and related tools) and needs to be at the end of the message.
The template above explains more about trailers, such as "See:" which can help documentation systems (such as a link to an issue tracker) and "Co-authored-by:" which can help social coding systems (such as a GitHub/GitLab username or email address).
- wizzwizz4 5y agoNote that the de-facto existing standard (FreeBSD) doesn't have the hyphen. If these are intended to be read by tooling, it's probably best to keep consistency with existing practice, even though every other trailer seems to be hyphenated. (The Git software can cope with spaces in trailer names.)