//if merge was completed successfully, finish the action
//note that if it wasn't intellij is left in the "merging state", and git4idea provides no UI way to resolve it
//merging can be done via intellij itself or any other util
int answer = Messages.showYesNoDialog(myProject, "Was the merge completed succesfully?", "Merge", Messages.getQuestionIcon());
if (answer==0){
GitMerger gitMerger=new GitMerger(myProject);
try {
gitMerger.mergeCommit(gitMerger.getMergingRoots());
} catch (VcsException e1) {
NotifyUtil.notifyError(myProject, "Error", "Error committing merge result");
e1.printStackTrace();
}