Package org.eclipse.jgit.dircache

Examples of org.eclipse.jgit.dircache.DirCache.writeTree()


        ObjectInserter odi = repo.newObjectInserter();
        try {
          // Write the index as tree to the object database. This may
          // fail for example when the index contains unmerged paths
          // (unresolved conflicts)
          ObjectId indexTreeId = index.writeTree(odi);

          if (insertChangeId)
            insertChangeId(indexTreeId);

          // Create a Commit object, populate it and write it
View Full Code Here


      ObjectInserter odi = repository.newObjectInserter();
      try {
        // Create the in-memory index of the new/updated issue.
        DirCache index = createIndex(repository, headId, sourceFolder,
            obliterate);
        ObjectId indexTreeId = index.writeTree(odi);

        // Create a commit object
        PersonIdent author = new PersonIdent("Moxie",
            "moxie@localhost");
        CommitBuilder commit = new CommitBuilder();
View Full Code Here

                } else {
                    index = null;
                }

                if ( index != null ) {
                    final ObjectId indexTreeId = index.writeTree( odi );

                    // Create a commit object
                    final CommitBuilder commit = new CommitBuilder();
                    commit.setAuthor( author );
                    commit.setCommitter( author );
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.