Examples of toObjectId()


Examples of org.eclipse.jgit.lib.AbbreviatedObjectId.toObjectId()

      final Collection<DiffEntry> diffs) throws IOException {
    for (DiffEntry diff : diffs) {
      final AbbreviatedObjectId oldId = diff.getOldId();
      if (oldId == null)
        continue;
      if (EMPTY_BLOB_ID.equals(oldId.toObjectId())
          && !EMPTY_BLOB_ID.equals(diff.getNewId().toObjectId()))
        return true;
    }
    return false;
  }
View Full Code Here

Examples of org.eclipse.jgit.lib.AbbreviatedObjectId.toObjectId()

    } catch (LargeObjectException.OutOfMemory tooBig) {
      return BINARY;

    } catch (LargeObjectException tooBig) {
      tooBig.setObjectId(id.toObjectId());
      throw tooBig;
    }
  }

  /**
 
View Full Code Here

Examples of org.eclipse.jgit.lib.AbbreviatedObjectId.toObjectId()

    } catch (LargeObjectException.OutOfMemory tooBig) {
      return BINARY;

    } catch (LargeObjectException tooBig) {
      tooBig.setObjectId(id.toObjectId());
      throw tooBig;
    }
  }

  private boolean isBinary() {
View Full Code Here

Examples of org.eclipse.jgit.lib.AbbreviatedObjectId.toObjectId()

      GitModelRepository parent = (GitModelRepository) modelCommit.getParent();
      Repository repo = parent.getRepository();
      AbbreviatedObjectId id = modelCommit.getCachedCommitObj().getId();

      commit = new RevWalk(repo).lookupCommit(id.toObjectId());
    }
    return commit;
  }

  /**
 
View Full Code Here

Examples of org.eclipse.jgit.lib.AbbreviatedObjectId.toObjectId()

    } catch (LargeObjectException.OutOfMemory tooBig) {
      return BINARY;

    } catch (LargeObjectException tooBig) {
      tooBig.setObjectId(id.toObjectId());
      throw tooBig;
    }
  }

  private boolean isBinary() {
View Full Code Here

Examples of org.eclipse.jgit.lib.AbbreviatedObjectId.toObjectId()

    } catch (LargeObjectException.OutOfMemory tooBig) {
      return BINARY;

    } catch (LargeObjectException tooBig) {
      tooBig.setObjectId(id.toObjectId());
      throw tooBig;
    }
  }

  private boolean isBinary() {
View Full Code Here

Examples of org.eclipse.jgit.lib.MutableObjectId.toObjectId()

        continue;
      final String path = walk.getPathString();
      for (int i = 0; i < walk.getTreeCount(); i++) {
        walk.getObjectId(id, i);
        if (!zero.equals(id))
          dupes.include(id.toObjectId(), path);
      }
      walk.enterSubtree();
    }
    if (dupes.validate())
      duplicates.put(commit, dupes);
View Full Code Here

Examples of org.eclipse.jgit.revwalk.RevCommit.toObjectId()

            walk.dispose();
            return new TestVersionResult(
                    tests,
                    new Date(Long.valueOf(headTree.getCommitTime()) * 1000 /* convert seconds to milliseconds */),
                    headTree.getAuthorIdent().toExternalString(),
                    headTree.toObjectId().getName(),
                    headTree.getFullMessage()
            );
        } catch (IOException e) {
            throw new StoreException.ReadException(e);
        }
View Full Code Here

Examples of org.eclipse.jgit.revwalk.RevCommit.toObjectId()

        sourceCommits[1]);
    if (baseCommit == null) {
      baseCommitId = null;
      return new EmptyTreeIterator();
    } else {
      baseCommitId = baseCommit.toObjectId();
      return openTree(baseCommit.getTree());
    }
  }
}
View Full Code Here

Examples of org.eclipse.jgit.revwalk.RevCommit.toObjectId()

          RevCommit next = walk.next();
          walk.reset();
          walk.setRevFilter(RevFilter.ALL);
          aheadCount = RevWalkUtils.count(walk, toRevCommit, next);
          behindCount = RevWalkUtils.count(walk, fromRevCommit, next);
          toObjectId = next.toObjectId();
          fromObjectId = null;
        } finally {
          walk.dispose();
        }
      }
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.