简体   繁体   中英

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" preferences.

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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM