auto-commit-msg
auto-commit-msg copied to clipboard
Respect commit message template
This is something part of standard git hook for commit message, where a check is done to see if the message comes from a template.
If this is not possible, then just read the actual value of commit.template e.g. _COMMIT_MESSAGE and use that as a prefix.
This is useful as a simple alternative to reading from the branch name (which is covered by the git-prefix extension already). And allows manually entering a ticket message or project name that is not based on branch name.
There is a low priority issue though
Using a configurable value in the admin for this extension would work as well - it is weird to set a prefix in settings.json which shouldn't be versioned and it's only respected in the extension unlike the main commit.template