Package org.eclipse.jgit.lib

Examples of org.eclipse.jgit.lib.ObjectWriter.writeTree()


      br.close();
    }

    pm.beginTask("Rewriting commits", queue.size());
    final ObjectWriter ow = new ObjectWriter(db);
    final ObjectId emptyTree = ow.writeTree(new Tree(db));
    final PersonIdent me = new PersonIdent("jgit rebuild-commitgraph",
        "rebuild-commitgraph@localhost");
    while (!queue.isEmpty()) {
      final ListIterator<ToRewrite> itr = queue
          .listIterator(queue.size());
View Full Code Here


      Tree A_A = A.addTree("A");
      Tree A_B = A.addTree("B");

      final ObjectWriter ow = new ObjectWriter(db);
      A_A.setId(ow.writeTree(A_A));
      A_B.setId(ow.writeTree(A_B));
      A.setId(ow.writeTree(A));
      root.setId(ow.writeTree(root));

      tree_root = rw.parseTree(root.getId());
View Full Code Here

      Tree A_A = A.addTree("A");
      Tree A_B = A.addTree("B");

      final ObjectWriter ow = new ObjectWriter(db);
      A_A.setId(ow.writeTree(A_A));
      A_B.setId(ow.writeTree(A_B));
      A.setId(ow.writeTree(A));
      root.setId(ow.writeTree(root));

      tree_root = rw.parseTree(root.getId());
      tree_A = rw.parseTree(A.getId());
View Full Code Here

      Tree A_B = A.addTree("B");

      final ObjectWriter ow = new ObjectWriter(db);
      A_A.setId(ow.writeTree(A_A));
      A_B.setId(ow.writeTree(A_B));
      A.setId(ow.writeTree(A));
      root.setId(ow.writeTree(root));

      tree_root = rw.parseTree(root.getId());
      tree_A = rw.parseTree(A.getId());
      tree_AB = rw.parseTree(A_A.getId());
View Full Code Here

      final ObjectWriter ow = new ObjectWriter(db);
      A_A.setId(ow.writeTree(A_A));
      A_B.setId(ow.writeTree(A_B));
      A.setId(ow.writeTree(A));
      root.setId(ow.writeTree(root));

      tree_root = rw.parseTree(root.getId());
      tree_A = rw.parseTree(A.getId());
      tree_AB = rw.parseTree(A_A.getId());
      assertSame(tree_AB, rw.parseTree(A_B.getId()));
View Full Code Here

    {
      final Tree root = new Tree(db);
      {
        final Tree subA = root.addTree("sub-a");
        subA.addFile("empty").setId(aFileId);
        subA.setId(ow.writeTree(subA));
      }
      {
        final Tree subC = root.addTree("sub-c");
        subC.addFile("empty").setId(cFileId1);
        subC.setId(ow.writeTree(subC));
View Full Code Here

        subA.setId(ow.writeTree(subA));
      }
      {
        final Tree subC = root.addTree("sub-c");
        subC.addFile("empty").setId(cFileId1);
        subC.setId(ow.writeTree(subC));
      }
      oldTree = ow.writeTree(root);
    }

    // Create sub-a/empty, sub-b/empty, sub-c/empty.
View Full Code Here

      {
        final Tree subC = root.addTree("sub-c");
        subC.addFile("empty").setId(cFileId1);
        subC.setId(ow.writeTree(subC));
      }
      oldTree = ow.writeTree(root);
    }

    // Create sub-a/empty, sub-b/empty, sub-c/empty.
    final ObjectId newTree;
    {
View Full Code Here

    {
      final Tree root = new Tree(db);
      {
        final Tree subA = root.addTree("sub-a");
        subA.addFile("empty").setId(aFileId);
        subA.setId(ow.writeTree(subA));
      }
      {
        final Tree subB = root.addTree("sub-b");
        subB.addFile("empty").setId(bFileId);
        subB.setId(ow.writeTree(subB));
View Full Code Here

        subA.setId(ow.writeTree(subA));
      }
      {
        final Tree subB = root.addTree("sub-b");
        subB.addFile("empty").setId(bFileId);
        subB.setId(ow.writeTree(subB));
      }
      {
        final Tree subC = root.addTree("sub-c");
        subC.addFile("empty").setId(cFileId2);
        subC.setId(ow.writeTree(subC));
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.