Smartgit:自动插入提交消息 [英] Smartgit: Auto insert commit message
本文介绍了Smartgit:自动插入提交消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有一种方法可以通过钩子脚本自动在Smartgit中插入提交消息? (击)。
如果用户提交了他的更改,我想预先加载提交消息字段。
Is there a way to auto insert the commit message in Smartgit with a hook script? (Bash). If a user commit's his change, I want to preload the commit message field.
推荐答案
我没有看到此功能的任何 SmartGit配置。
I don't see any SmartGit configuration for this feature.
我宁愿依赖 prepare-commit-msg
hook ,如如何根据 commit.template
Git配置。
查看也在提交模板中包含当前分支名称再举一个例子。
I would rather rely on a prepare-commit-msg
hook as described in "How do I add project-specific information to the Git commit comment?", based on a commit.template
Git configuration.
See also "Including the current branch name in the commit template" for another example.
这篇关于Smartgit:自动插入提交消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文