Examples of MutableObjectId


Examples of org.eclipse.jgit.lib.MutableObjectId

   * @return an iterator that iterates over notes of this NoteMap. Non note
   *         entries are ignored by this iterator.
   */
  public Iterator<Note> iterator() {
    try {
      return root.iterator(new MutableObjectId(), reader);
    } catch (IOException e) {
      throw new RuntimeException(e);
    }
  }
View Full Code Here

Examples of org.eclipse.jgit.lib.MutableObjectId

    long fileCnt = 0;
    long lineCnt = 0;
    ObjectReader or = db.newObjectReader();
    try {
      final MutableObjectId id = new MutableObjectId();
      RevWalk rw = new RevWalk(or);
      TreeWalk tw = new TreeWalk(or);
      tw.reset(rw.parseTree(db.resolve(Constants.HEAD)));
      tw.setRecursive(true);
View Full Code Here

Examples of org.eclipse.jgit.lib.MutableObjectId

  void parseCanonical(final RevWalk walk, final byte[] raw)
      throws IOException {
    if (!walk.shallowCommitsInitialized)
      walk.initializeShallowCommits();

    final MutableObjectId idBuffer = walk.idBuffer;
    idBuffer.fromString(raw, 5);
    tree = walk.lookupTree(idBuffer);

    int ptr = 46;
    if (parents == null) {
      RevCommit[] pList = new RevCommit[1];
      int nParents = 0;
      for (;;) {
        if (raw[ptr] != 'p')
          break;
        idBuffer.fromString(raw, ptr + 7);
        final RevCommit p = walk.lookupCommit(idBuffer);
        if (nParents == 0)
          pList[nParents++] = p;
        else if (nParents == 1) {
          pList = new RevCommit[] { pList[0], p };
View Full Code Here

Examples of org.eclipse.jgit.lib.MutableObjectId

   */
  public BlameGenerator(Repository repository, String path) {
    this.repository = repository;
    this.resultPath = PathFilter.create(path);

    idBuf = new MutableObjectId();
    setFollowFileRenames(true);
    initRevPool(false);

    remaining = -1;
  }
View Full Code Here

Examples of org.eclipse.jgit.lib.MutableObjectId

    int maxN = 0;

    AbbreviatedObjectId startId;
    ObjectReader or = db.newObjectReader();
    try {
      final MutableObjectId id = new MutableObjectId();
      RevWalk rw = new RevWalk(or);
      TreeWalk tw = new TreeWalk(or);
      tw.setFilter(TreeFilter.ANY_DIFF);
      tw.setRecursive(true);
View Full Code Here

Examples of org.eclipse.jgit.lib.MutableObjectId

  }

  private RevWalk(final Repository repo, final ObjectReader or) {
    repository = repo;
    reader = or;
    idBuffer = new MutableObjectId();
    objects = new ObjectIdSubclassMap<RevObject>();
    roots = new ArrayList<RevCommit>();
    queue = new DateRevQueue();
    pending = new StartGenerator(this);
    sorting = EnumSet.of(RevSort.NONE);
View Full Code Here

Examples of org.eclipse.jgit.lib.MutableObjectId

        parseCanonical(walk, buffer);
    }
  }

  void parseCanonical(final RevWalk walk, final byte[] raw) {
    final MutableObjectId idBuffer = walk.idBuffer;
    idBuffer.fromString(raw, 5);
    tree = walk.lookupTree(idBuffer);

    int ptr = 46;
    if (parents == null) {
      RevCommit[] pList = new RevCommit[1];
      int nParents = 0;
      for (;;) {
        if (raw[ptr] != 'p')
          break;
        idBuffer.fromString(raw, ptr + 7);
        final RevCommit p = walk.lookupCommit(idBuffer);
        if (nParents == 0)
          pList[nParents++] = p;
        else if (nParents == 1) {
          pList = new RevCommit[] { pList[0], p };
View Full Code Here

Examples of org.eclipse.jgit.lib.MutableObjectId

    return line.toString();
  }

  private void negotiate(final ProgressMonitor monitor) throws IOException,
      CancelledException {
    final MutableObjectId ackId = new MutableObjectId();
    int resultsPending = 0;
    int havesSent = 0;
    int havesSinceLastContinue = 0;
    boolean receivedContinue = false;
    boolean receivedAck = false;
View Full Code Here

Examples of org.eclipse.jgit.lib.MutableObjectId

    edgeObjects = edges;

    alreadyProcessed = new IntSet();
    treeCache = new ObjectIdSubclassMap<TreeWithData>();
    parser = new CanonicalTreeParser();
    idBuf = new MutableObjectId();
  }
View Full Code Here

Examples of org.eclipse.jgit.lib.MutableObjectId

    readCurs = objectDatabase.newReader();
    buf = new byte[BUFFER_SIZE];
    tempBuffer = new byte[BUFFER_SIZE];
    hdrBuf = new byte[64];
    objectDigest = Constants.newMessageDigest();
    tempObjectId = new MutableObjectId();
    packDigest = Constants.newMessageDigest();
    checkObjectCollisions = true;
  }
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.