Package com.caucho.env.git

Examples of com.caucho.env.git.GitTree


        return false;

      return validateHash(commit.getTree());
    }
    else if (type == GitType.TREE) {
      GitTree tree = readTree(sha1);

      for (GitTree.Entry entry : tree.entries()) {
        if (! validateHash(entry.getSha1())) {
          if (log.isLoggable(Level.FINE))
            log.fine(this + " invalid " + entry);

          return false;
View Full Code Here


      } finally {
        IoUtil.close(is);
      }
    }
    else {
      GitTree tree = new GitTree();
     
      for (String fileName : path.list()) {
        Path subPath = path.lookup(fileName);
       
        String subHash = addPathRec(subPath);
       
        tree.addEntry(fileName, 775, subHash);
      }
     
      String hash = addTree(tree);
     
      if (hash == null)
View Full Code Here

TOP

Related Classes of com.caucho.env.git.GitTree

Copyright © 2018 www.massapicom. 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.