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

Examples of org.eclipse.egit.ui.internal.commit.RepositoryCommit.abbreviate()


      RepositoryCommit commit = (RepositoryCommit) element;
      RevCommit revCommit = commit.getRevCommit();

      styled.append(MessageFormat.format(
          UIText.CommitResultLabelProvider_SectionMessage,
          commit.abbreviate(), revCommit.getShortMessage()));

      PersonIdent author = revCommit.getAuthorIdent();
      if (author != null)
        styled.append(MessageFormat.format(
            UIText.CommitResultLabelProvider_SectionAuthor,
View Full Code Here


  public void testGetters() {
    RepositoryCommit repoCommit = new RepositoryCommit(repository, commit);
    assertEquals(repository, repoCommit.getRepository());
    assertEquals(commit, repoCommit.getRevCommit());
    assertNotNull(repoCommit.getRepositoryName());
    assertNotNull(repoCommit.abbreviate());
  }

  @Test
  public void testDiffs() throws Exception {
    RepositoryCommit repoCommit = new RepositoryCommit(repository, commit);
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.