Package org.eclipse.jgit.dircache

Examples of org.eclipse.jgit.dircache.DirCache.nextEntry()


            builder.add(entry);
            i++;
            continue;
          }

          int next = dc.nextEntry(i);
          String path = entry.getPathString();
          DirCacheEntry res = new DirCacheEntry(path);
          if (resolved.containsKey(path)) {
            // For a file with content merge conflict that we produced a result
            // above on, collapse the file down to a single stage 0 with just
View Full Code Here


      }

      final DirCacheBuilder edit = dirc.builder();
      if (first > 0)
        edit.keep(0, first);
      final int next = dirc.nextEntry(first);
      if (next < dirc.getEntryCount())
        edit.keep(next, dirc.getEntryCount() - next);
      if (!edit.commit())
        tree.failed(new Status(IStatus.ERROR, Activator.getPluginId(),
            0, CoreText.MoveDeleteHook_operationError, null));
View Full Code Here

      DirCacheEntry firstEntry = dc.getEntry(firstIndex);
      if (stage == FIRST_AVAILABLE || firstEntry.getStage() == stage)
        return firstEntry.getObjectId();

      // Ok, we have to search
      int nextIndex = dc.nextEntry(firstIndex);
      for (int i = firstIndex; i < nextIndex; i++) {
        DirCacheEntry entry = dc.getEntry(i);
        if (entry.getStage() == stage)
          return entry.getObjectId();
      }
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.