timbrel / GitSavvy

Full git and GitHub integration with Sublime Text
MIT License
1.91k stars 137 forks source link

Git commit.template isn't respected? #1549

Closed IPWright83 closed 2 years ago

IPWright83 commented 2 years ago

It could well be I've just missed some configuration but I can't seem to get GitSavvy to respect a commit.template file that I've created?

What I want to do is prefix my commit message with a format such as feat[ticket-id]:. I've created a pre-commit hook to run to generate this based on a branch name. I've currently set this globally using git config --global commit.template ~/.gitmessage and I expected that to be at the start of my commit message, but it always seems to be empty? I've checked in VSCode and it seems to be picking it up fine.

Is there a setting I'm missing or a way to get GitSavvy to respect this? Bonus points if it's possible to actually configure this at the repository level somehow so I don't use the same ~/.gitmessage on all my repos.

kaste commented 2 years ago

We don't run the pre-commit or commit-message hook. (Don't know the exact names of these hooks; there are plenty of them around committing.)

The plan was to wait for the git hook functionality so we don't have to reinvent the wheel. This feature is WIP since ages now.