1

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.

4

1 回答 1

0

在通过 Commit 对话框和 Git Staging 视图提交之前,您应该通过修饰看到文件有错误。

可以将出现警告/错误时的提示作为新功能添加到 EGit,请参阅错误 373067

于 2013-08-09T13:26:36.590 回答