質問

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.

役に立ちましたか?

解決

You should see that the files have an error via decoration before committing via both the Commit dialog and the Git Staging view.

Prompting when there are warnings/errors could be added as a new feature to EGit, see bug 373067.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top