Package org.eclipse.jgit.lib

Examples of org.eclipse.jgit.lib.MutableObjectId


    if (includeTrees && walk.isRecursive())
      throw new IllegalArgumentException(
          JGitText.get().cannotBeRecursiveWhenTreesAreIncluded);

    List<DiffEntry> r = new ArrayList<DiffEntry>();
    MutableObjectId idBuf = new MutableObjectId();
    while (walk.next()) {
      DiffEntry entry = new DiffEntry();

      walk.getObjectId(idBuf, 0);
      entry.oldId = AbbreviatedObjectId.fromObjectId(idBuf);
View Full Code Here


    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

        // Return null if no local changes to stash
        if (!treeWalk.next())
          return null;

        MutableObjectId id = new MutableObjectId();
        List<PathEdit> wtEdits = new ArrayList<PathEdit>();
        List<String> wtDeletes = new ArrayList<String>();
        do {
          AbstractTreeIterator headIter = treeWalk.getTree(0,
              AbstractTreeIterator.class);
View Full Code Here

   */
  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

    this.db = db;
    this.reader = db.newObjectReader();
    this.inserter = db.newObjectInserter();
    this.noteMerger = noteMerger;
    this.nonNotesMergeStrategy = nonNotesMergeStrategy;
    this.objectIdPrefix = new MutableObjectId();
  }
View Full Code Here

    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

  }

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

    infoByKey = new HashMap<ChunkKey, ChunkInfo>();
    dirtyMeta = new HashMap<ChunkKey, ChunkMeta>();
    chunkMeta = new HashMap<ChunkKey, ChunkMeta>();
    chunkEdges = new HashMap<ChunkKey, Edges>();
    treeParser = new CanonicalTreeParser();
    idBuffer = new MutableObjectId();
    objectMap = new ObjectIdSubclassMap<DhtInfo>();

    final int max = options.getParserCacheSize();
    chunkReadBackCache = new LinkedHashMap<ChunkKey, PackChunk>(max, 0.75f, true) {
      private static final long serialVersionUID = 1L;
View Full Code Here

    if (walk.isRecursive())
      throw new IllegalArgumentException(
          "TreeWalk shouldn't be recursive."); //$NON-NLS-1$

    List<ThreeWayDiffEntry> r = new ArrayList<ThreeWayDiffEntry>();
    MutableObjectId idBuf = new MutableObjectId();
    while (walk.next()) {
      ThreeWayDiffEntry e = new ThreeWayDiffEntry();

      walk.getObjectId(idBuf, 0);
      e.localId = AbbreviatedObjectId.fromObjectId(idBuf);
View Full Code Here

      int cacheNth = tw.addTree(new DirCacheIterator(repo.readDirCache()));
      tw.setFilter(new IndexDiffFilter(cacheNth, fileNth));
      tw.setRecursive(true);

      Map<String, Change> result = new HashMap<String, Change>();
      MutableObjectId idBuf = new MutableObjectId();
      while (tw.next()) {
        Change change = new Change();
        change.name = tw.getNameString();
        tw.getObjectId(idBuf, 0);
        change.objectId = AbbreviatedObjectId.fromObjectId(idBuf);
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.lib.MutableObjectId

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.