Eclipse/Subversive: How to commit always on Eclipse exit?
I wonder if (and how) it is possible to always automatically commit a repository once Eclipse is closed?
I didn't find any option in the Eclipse "Team" preferen开发者_JS百科ces.
Don't ever do that. Committing should be done when
- code compiles
- unit tests pass
- the change you're committing doesn't make your colleagues go mad because the code is in such a state that they can't do their work anymore
Moreover, the commit might very well fail if someone else has made a conflicting change, forcing you to update and perhaps made additional changes before trying to commit again.
In short, it's not something that should be automated at the closing of Eclipse (and that's why Eclipse doesn't allow to do it and probably never will).
That sounds like a very bad idea indeed, as JB pointed out.
Without knowing why you'd want to do that, maybe using Eclipse "local history" feature would be more suitable?
精彩评论