Question

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!

Was it helpful?

Solution

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

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top