Package org.eclipse.jgit.dircache

Examples of org.eclipse.jgit.dircache.DirCacheBuilder.finish()


      t.add(makeEntry("t", FileMode.REGULAR_FILE));

      b.finish();
      o.finish();
      p.finish();
      t.finish();
    }

    final ObjectInserter ow = db.newObjectInserter();
    final ObjectId B = commit(ow, treeB, new ObjectId[] {});
    final ObjectId O = commit(ow, treeO, new ObjectId[] { B });
View Full Code Here


      throw new JGitInternalException(JGitText.get().emptyCommit);

    // update index
    dcEditor.commit();
    // finish temporary in-core index used for this commit
    dcBuilder.finish();
    return inCoreIndex;
  }

  /**
   * Look an entry's path up in the list of paths specified by the --only/ -o
View Full Code Here

      throw new JGitInternalException(JGitText.get().emptyCommit);

    // update index
    dcEditor.commit();
    // finish temporary in-core index used for this commit
    dcBuilder.finish();
    return inCoreIndex;
  }

  /**
   * Look an entry's path up in the list of paths specified by the --only/ -o
View Full Code Here

      throw new JGitInternalException(JGitText.get().emptyCommit);

    // update index
    dcEditor.commit();
    // finish temporary in-core index used for this commit
    dcBuilder.finish();
    return inCoreIndex;
  }

  /**
   * Look an entry's path up in the list of paths specified by the --only/ -o
View Full Code Here

      throw new JGitInternalException(JGitText.get().emptyCommit);

    // update index
    existingBuilder.commit();
    // finish temporary in-core index used for this commit
    tempBuilder.finish();
    return inCoreIndex;
  }

  /**
   * Look an entry's path up in the list of paths specified by the --only/ -o
View Full Code Here

      DirCacheEntry e = new DirCacheEntry(tw.getRawPath());
      e.setFileMode(tw.getFileMode(0));
      e.setObjectId(tw.getObjectId(0));
      builder.add(e);
    }
    builder.finish();
    return ret;
  }
}
View Full Code Here

      throw new JGitInternalException(JGitText.get().emptyCommit);

    // update index
    existingBuilder.commit();
    // finish temporary in-core index used for this commit
    tempBuilder.finish();
    return inCoreIndex;
  }

  /**
   * Look an entry's path up in the list of paths specified by the --only/ -o
View Full Code Here

        // release the treewalk
        treeWalk.release();
      }

      // finish temporary in-core index used for this commit
      dcBuilder.finish();
    } finally {
      inserter.release();
    }
    return inCoreIndex;
  }
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.