Friday, 9 August 2013

Is it possible to decline egit commit when files contain errors

Is it possible to decline egit commit when files contain errors

in CVS it was possible to configure Eclipse to allow, deny or prompt if
files contained errors or warnings and a commit happened.
Is there currently anything like this in EGit already? Is there a possible
workaround until this is available in EGit?
I would like to be forced automatically that I solve compile errors before
commit / push. Yes, I can consider git hooks that solve this problem, but
since JGit (afaik) doesn't call hooks this doesn't really help.
It would be enough to ensure this behavior for Java files. But since
Eclipse supports errors for nearly all types of files I think it doesn't
really matter which type of files I have.

No comments:

Post a Comment