Package org.eclipse.egit.ui.internal.commit.CommitHelper

Examples of org.eclipse.egit.ui.internal.commit.CommitHelper.CommitInfo


    updateSignedOffButton();
    updateChangeIdButton();
  }

  private void getHeadCommitInfo() {
    CommitInfo headCommitInfo = CommitHelper.getHeadCommitInfo(repository);
    RevCommit previousCommit = headCommitInfo.getCommit();

    amendingCommitInRemoteBranch = isContainedInAnyRemoteBranch(previousCommit);
    previousCommitMessage = headCommitInfo.getCommitMessage();
    previousAuthor = headCommitInfo.getAuthor();
  }
View Full Code Here


    return headCommit;
  }

  public static void checkHeadCommit(Repository repository, String author,
      String committer, String message) throws Exception {
    CommitInfo commitInfo = CommitHelper.getHeadCommitInfo(repository);
    assertEquals(author, commitInfo.getAuthor());
    assertEquals(committer, commitInfo.getCommitter());
    assertEquals(message, commitInfo.getCommitMessage());
  }
View Full Code Here

TOP

Related Classes of org.eclipse.egit.ui.internal.commit.CommitHelper.CommitInfo

Copyright © 2018 www.massapicom. 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.