清除 Eclipse 中的提交消息(使用 Mylyn 时)

发布于 2024-09-24 09:27:36 字数 181 浏览 0 评论 0原文

无论我做什么,我似乎都无法让 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

暗喜 2024-10-01 09:27:36

摘要:Mylyn 会根据您所处理的任务自动创建有意义的提交消息。要禁用它们,请参阅下面的禁用部分。

禁用: 要禁用 Mylyn 的提交消息,请转至 Preferences ->任务->团队并从提交评论模板中删除所有内容。

详细信息:Mylyn 提交消息是通过使用您的上下文自动生成的,以确定当您更改要提交的文件集时哪些任务处于活动状态。因此,如果您在更改文件 Submit.java 时让任务实现提交按钮处于活动状态,那么当您提交 Submit.java 时,提交消息将自动填充实现提交按钮和该任务的链接。以下是任务改进关联原型的填写提交消息的示例:

Commit Message

许多人发现这比从任务中复制和粘贴或自己输入提交消息更方便。此外,由 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 the Commit 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 commit Submit.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:

Commit Message

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.

Code Annotations

See this article for further details and advantages: Mastering Change-Sets

David Shepherd, Tasktop Technologies
http://www.twitter.com/davidcshepherd

人事已非 2024-10-01 09:27:36

转到首选项 ->任务->团队:清除提交评论模板

Go to Preferences -> Tasks -> Team : clear the Commit Comment Template

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文