Examples of RevObject


Examples of org.eclipse.jgit.revwalk.RevObject

      }
    }
  }

  private void process(final ObjectId id) throws TransportException {
    final RevObject obj;
    try {
      if (id instanceof RevObject) {
        obj = (RevObject) id;
        if (obj.has(COMPLETE))
          return;
        revWalk.parseHeaders(obj);
      } else {
        obj = revWalk.parseAny(id);
        if (obj.has(COMPLETE))
          return;
      }
    } catch (IOException e) {
      throw new TransportException(MessageFormat.format(JGitText.get().cannotRead, id.name()), e);
    }

    switch (obj.getType()) {
    case Constants.OBJ_BLOB:
      processBlob(obj);
      break;
    case Constants.OBJ_TREE:
      processTree(obj);
View Full Code Here

Examples of org.locationtech.geogig.api.RevObject

     * @param id the id to look for
     * @return true if the object was found, false otherwise
     */
    public boolean commitExists(final ObjectId id) {
        try {
            RevObject revObject = objectDatabase().get(id);
            return revObject instanceof RevCommit;
        } catch (IllegalArgumentException e) {
            return false;
        }
    }
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.