Package org.eclipse.jgit.treewalk

Examples of org.eclipse.jgit.treewalk.NameConflictTreeWalk


    try {
      builder = dircache.builder();
      DirCacheBuildIterator buildIt = new DirCacheBuildIterator(builder);

      tw = new NameConflictTreeWalk(db);
      tw.addTree(mergeBase());
      tw.addTree(sourceTrees[0]);
      tw.addTree(sourceTrees[1]);
      tw.addTree(buildIt);
      if (workingTreeIterator != null)
View Full Code Here


   */
  public void preScanTwoTrees() throws CorruptObjectException, IOException {
    removed.clear();
    updated.clear();
    conflicts.clear();
    walk = new NameConflictTreeWalk(repo);
    builder = dc.builder();

    addTree(walk, headCommitTree);
    addTree(walk, mergeCommitTree);
    walk.addTree(new DirCacheBuildIterator(builder));
View Full Code Here

    updated.clear();
    conflicts.clear();

    builder = dc.builder();

    walk = new NameConflictTreeWalk(repo);
    walk.addTree(mergeCommitTree);
    walk.addTree(new DirCacheBuildIterator(builder));
    walk.addTree(workingTree);

    while (walk.next()) {
View Full Code Here

      removeEmptyParents(file);
    }
  }

  private boolean isModified(String path) throws CorruptObjectException, IOException {
    NameConflictTreeWalk tw = new NameConflictTreeWalk(repo);
    tw.addTree(new DirCacheIterator(dc));
    tw.addTree(new FileTreeIterator(repo));
    tw.setRecursive(true);
    tw.setFilter(PathFilter.create(path));
    DirCacheIterator dcIt;
    WorkingTreeIterator wtIt;
    while(tw.next()) {
      dcIt = tw.getTree(0, DirCacheIterator.class);
      wtIt = tw.getTree(1, WorkingTreeIterator.class);
      if (dcIt == null || wtIt == null)
        return true;
      if (wtIt.isModified(dcIt.getDirCacheEntry(), true)) {
        return true;
      }
View Full Code Here

   */
  public void preScanTwoTrees() throws CorruptObjectException, IOException {
    removed.clear();
    updated.clear();
    conflicts.clear();
    walk = new NameConflictTreeWalk(repo);
    builder = dc.builder();

    addTree(walk, headCommitTree);
    addTree(walk, mergeCommitTree);
    walk.addTree(new DirCacheBuildIterator(builder));
View Full Code Here

    updated.clear();
    conflicts.clear();

    builder = dc.builder();

    walk = new NameConflictTreeWalk(repo);
    walk.addTree(mergeCommitTree);
    walk.addTree(new DirCacheBuildIterator(builder));
    walk.addTree(workingTree);

    while (walk.next()) {
View Full Code Here

      removeEmptyParents(file);
    }
  }

  private boolean isModified(String path) throws CorruptObjectException, IOException {
    NameConflictTreeWalk tw = new NameConflictTreeWalk(repo);
    tw.addTree(new DirCacheIterator(dc));
    tw.addTree(new FileTreeIterator(repo));
    tw.setRecursive(true);
    tw.setFilter(PathFilter.create(path));
    DirCacheIterator dcIt;
    WorkingTreeIterator wtIt;
    while(tw.next()) {
      dcIt = tw.getTree(0, DirCacheIterator.class);
      wtIt = tw.getTree(1, WorkingTreeIterator.class);
      if (dcIt == null || wtIt == null)
        return true;
      if (wtIt.isModified(dcIt.getDirCacheEntry(), true)) {
        return true;
      }
View Full Code Here

    try {
      builder = dircache.builder();
      DirCacheBuildIterator buildIt = new DirCacheBuildIterator(builder);

      tw = new NameConflictTreeWalk(db);
      tw.addTree(mergeBase());
      tw.addTree(sourceTrees[0]);
      tw.addTree(sourceTrees[1]);
      tw.addTree(buildIt);
      if (workingTreeIterator != null)
View Full Code Here

    try {
      builder = dircache.builder();
      DirCacheBuildIterator buildIt = new DirCacheBuildIterator(builder);

      tw = new NameConflictTreeWalk(db);
      tw.addTree(mergeBase());
      tw.addTree(sourceTrees[0]);
      tw.addTree(sourceTrees[1]);
      tw.addTree(buildIt);
      if (workingTreeIterator != null)
View Full Code Here

   */
  public void preScanTwoTrees() throws CorruptObjectException, IOException {
    removed.clear();
    updated.clear();
    conflicts.clear();
    walk = new NameConflictTreeWalk(repo);
    builder = dc.builder();

    addTree(walk, headCommitTree);
    addTree(walk, mergeCommitTree);
    walk.addTree(new DirCacheBuildIterator(builder));
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.treewalk.NameConflictTreeWalk

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.