List of usage examples for org.eclipse.jgit.lib Repository readSquashCommitMsg
@Nullable public String readSquashCommitMsg() throws IOException
From source file:org.eclipse.egit.gitflow.ui.internal.actions.FeatureFinishHandler.java
License:Open Source License
private void rewordCommitMessage(Shell activeShell, final GitFlowRepository gfRepo) throws CoreException, IOException { Repository repository = gfRepo.getRepository(); CommitHelper commitHelper = new CommitHelper(repository); CommitMessageEditorDialog messageEditorDialog = new CommitMessageEditorDialog(activeShell, repository.readSquashCommitMsg(), UIText.FeatureFinishHandler_rewordSquashedCommitMessage); if (Window.OK == messageEditorDialog.open()) { String commitMessage = stripCommentLines(messageEditorDialog.getCommitMessage()); CommitOperation commitOperation = new CommitOperation(repository, commitHelper.getAuthor(), commitHelper.getCommitter(), commitMessage); commitOperation.execute(null);//www . ja v a 2s .c o m } }