Package org.eclipse.jgit.revwalk

Examples of org.eclipse.jgit.revwalk.RevCommit.copyRawTo()


    final int size = (UserCommitActivity.SIZE * UserCommitActivity.GROWTH) + 2;
    for (int i = 0; i < size; i++)
      user.include(commit, author);
    assertEquals(size, user.getCount());
    byte[] commitId = new byte[Constants.OBJECT_ID_LENGTH];
    commit.copyRawTo(commitId, 0);
    for (byte[] id : user.getRawIds())
      assertTrue(Arrays.equals(commitId, id));
    for (ObjectId id : user.getIds())
      assertEquals(commit, id);
  }
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.