-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Placeholders in the commit template #2
Comments
I'll look into it. |
Even better (and without getting greedy), be able to apply a regex on the branch name to get the actual string we want. Let me know if you feel like getting help on this. |
@gkohen It'll be great if you can lend a hand. I have no idea when I'll be able to get it. |
@gorenm , I started working on it but I'm stuck on trying to resolve the branch name from the project object. Like mentioned, any pointers would be appreciated. |
@gkohen I think that the getCurrentBranchName function from com.intellij.dvcs.repo.Repository might work. |
can you just run command |
Any progress on this one? It would be a really useful feature. |
@gkohen ping. This might also help: https://github.com/JanGatting/GitCommitMessage |
Hi, this plugin is very useful, thank you for sharing it with us.
Although it will be nice if we had the opportunity to define placeholders in the template, that will be automatically filled when you press CTRL+K to commit. One placeholder very useful is the git branch name. Where i work we need to write the branch name for every commit.
Ex: In the template i write " [#branch_name] " and when i commit the plugin will automatically replace #branch_name with the current git branch name.
Thanks
The text was updated successfully, but these errors were encountered: