Package org.eclipse.egit.core.op

Examples of org.eclipse.egit.core.op.RewordCommitOperation.execute()


        commit.name())) {

      @Override
      public IStatus runInWorkspace(IProgressMonitor monitor) {
        try {
          op.execute(monitor);
        } catch (CoreException e) {
          Activator.logError(UIText.RewordHandler_InternalError, e);
        }
        return Status.OK_STATUS;
      }
View Full Code Here


  @Test
  public void reword() throws Exception {
    RewordCommitOperation op = new RewordCommitOperation(
        testRepository.getRepository(), commit, "new message");
    op.execute(new NullProgressMonitor());

    LogCommand log = new Git(testRepository.getRepository()).log();
    RevCommit newCommit = log.call().iterator().next();
    assertEquals("new message", newCommit.getFullMessage());
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.