清除 Eclipse 中的提交消息(使用 Mylyn 时)
无论我做什么,我似乎都无法让 Mylyn 停止 插入基于任务的提交消息,即使该任务不再处于活动状态并已关闭。我尝试过重新启动应用程序,尝试过激活和停用任务(这似乎只是更改提交消息,尽管这并不一致)。
换个角度看问题也解决不了问题。
一定有某个地方我忽略了关闭某个开关。请帮我解决它!
No matter what I do, I cannot seem to get Mylyn to stop inserting a commit message based on a Task even though that task is no longer active and closed. I've tried restarting the app, I've tried activating and inactivating tasks (which seems to simply change the commit message, although this is not consistent).
Switching to different perspectives also does not resolve the problem.
There must be some switch somewhere that I am neglecting to turn off. Please help me fix it!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
摘要:Mylyn 会根据您所处理的任务自动创建有意义的提交消息。要禁用它们,请参阅下面的禁用部分。
禁用: 要禁用 Mylyn 的提交消息,请转至
Preferences ->任务->团队
并从提交评论模板
中删除所有内容。详细信息:Mylyn 提交消息是通过使用您的上下文自动生成的,以确定当您更改要提交的文件集时哪些任务处于活动状态。因此,如果您在更改文件
Submit.java
时让任务实现提交按钮处于活动状态,那么当您提交Submit.java
时,提交消息将自动填充实现提交按钮和该任务的链接。以下是任务改进关联原型的填写提交消息的示例:许多人发现这比从任务中复制和粘贴或自己输入提交消息更方便。此外,由 Mylyn 填写提交消息有几个优点,例如可以追溯到任务并具有正确的注释。以下是 Mylyn 生成的提交消息所允许的可追溯性的示例。您可以看到代码注释具有直接返回到任务的链接。
有关更多详细信息和优点,请参阅本文:掌握变更集
David Shepherd,Tasktop 技术
http://www.twitter.com/davidcshepherd
Summary: Mylyn automatically creates meaningful commit messages based on the tasks you've worked on. To disable them see the Disabling section below.
Disabling: To disable Mylyn's commit messages go to
Preferences -> Tasks -> Team
and remove all content from theCommit Comment Template
.Details: Mylyn commit messages are automatically generated by using your context to determine which tasks where active when you changed the set of files you are about to commit. Thus, if you had the task implement the submit button active when you changed the file
Submit.java
then when you commitSubmit.java
the commit message will automatically be filled in with implement the submit button and a link to that task. Here's an example of a filled in commit message for the task improve upon associations prototype:Many people find this more convenient than having to copy and paste from your task or type in a commit message yourself. Additionally, there are several advantages to having the commit message filled in by Mylyn, such as having traceability back to the task and having correct annotations. Here's an example of the traceability that having Mylyn-generated commit messages allows. You can see that the code annotations have links directly back to the tasks.
See this article for further details and advantages: Mastering Change-Sets
David Shepherd, Tasktop Technologies
http://www.twitter.com/davidcshepherd
转到
首选项 ->任务->团队
:清除提交评论模板
Go to
Preferences -> Tasks -> Team
: clear theCommit Comment Template