Package org.eclipse.jgit.patch

Examples of org.eclipse.jgit.patch.HunkHeader.toEditList()


    assertEquals(FileHeader.PatchType.BINARY, fh.getPatchType());

    assertEquals(1, fh.getHunks().size());

    HunkHeader hh = fh.getHunks().get(0);
    assertEquals(0, hh.toEditList().size());
  }

  public void testCreateFileHeader_GitLink() throws Exception {
    ObjectId aId = blob("a\n");
    ObjectId bId = blob("b\n");
View Full Code Here


    assertEquals(diffHeader, RawParseUtils.decode(fh.getBuffer()));

    assertEquals(1, fh.getHunks().size());

    HunkHeader hh = fh.getHunks().get(0);
    assertEquals(0, hh.toEditList().size());
  }

  private String makeDiffHeader(String pathA, String pathB, ObjectId aId,
      ObjectId bId) {
    String a = aId.abbreviate(db).name();
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.