Replies: 6 comments 6 replies
-
I'm not sure I understand what you mean. What do you mean with "commit_message template"? |
Beta Was this translation helpful? Give feedback.
-
There is something like this but static GitSavvy/GitSavvy.sublime-settings Lines 129 to 137 in 6452528 T.i. you can create a file which will be read and displayed here. But it is static content and below the help text. This is generally done here GitSavvy/core/commands/commit.py Line 121 in 6452528 although I don't know how the feature would look like tbh. Should this really be automatic every time you open the commit message view? Wouldn't it be preferable to make a shortcut ( Or make a different command/binding and instead of calling just
|
Beta Was this translation helpful? Give feedback.
-
Besides that, at the time we disabled the pre-commit-message hook feature, git core was already working on making a "hooks" API. As soon as this feature lands, it is in the 2.36rc atm, we can probably look into enabling the hook again. |
Beta Was this translation helpful? Give feedback.
-
It would be cool to make a file that would insert text before COMMIT_HELP_TEXT. With the ability to replace the #branch# template with the name of a branch, for example. Implement your prepare-commit-msg with environment variables. |
Beta Was this translation helpful? Give feedback.
-
Well, there are some interesting bits here but I think overall a first implementation would be very idiosyncratic and of course proprietary. I think you should try an implementation as an add-on plugin to GitSavvy. (Actually I start a lot of the functionality as add-ons and some of them land in GitSavvy after months or years, and of course some never get useful and interesting enough.) The name of such add-ons must start with GitSavvy, e.g. The command of interest here is |
Beta Was this translation helpful? Give feedback.
-
I saw that you deactivated the pre-commit-message hook. Can it be possible to implement the functionality of editing the commit_message template?
For example, I want to automatically add the branch name to the beginning of the commit.
Beta Was this translation helpful? Give feedback.
All reactions