org.eclipse.jgit.lib
Class IndexTreeWalker

java.lang.Object
  extended by org.eclipse.jgit.lib.IndexTreeWalker

public class IndexTreeWalker
extends java.lang.Object

A class for traversing the index and one or two trees. A visitor is invoked for executing actions, like figuring out how to merge.


Constructor Summary
IndexTreeWalker(GitIndex index, Tree tree, java.io.File root, IndexTreeVisitor visitor)
          Construct a walker for the index and one tree.
IndexTreeWalker(GitIndex index, Tree mainTree, Tree newTree, java.io.File root, IndexTreeVisitor visitor)
          Construct a walker for the index and two trees.
 
Method Summary
 void walk()
          Actually walk the index tree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexTreeWalker

public IndexTreeWalker(GitIndex index,
                       Tree tree,
                       java.io.File root,
                       IndexTreeVisitor visitor)
Construct a walker for the index and one tree.

Parameters:
index -
tree -
root -
visitor -

IndexTreeWalker

public IndexTreeWalker(GitIndex index,
                       Tree mainTree,
                       Tree newTree,
                       java.io.File root,
                       IndexTreeVisitor visitor)
Construct a walker for the index and two trees.

Parameters:
index -
mainTree -
newTree -
root -
visitor -
Method Detail

walk

public void walk()
          throws java.io.IOException
Actually walk the index tree

Throws:
java.io.IOException