I want to integrate my plugin (it checks that file meets some requirements) before Vcs Commit command.
So the effect should be like:
1) User clicks Commit
2) My plugin is called for check
3) Commit is performed if check is OK.
I've seen this already in IDEA - inspections are performed before commit and IDEA proposes not to commit file that breaks some inspection rules.
So the question is - can I implement this from my custom plugin?
Thanks in advance.