org.eclipse.jgit.lib
Interface IndexTreeVisitor

All Known Implementing Classes:
AbstractIndexTreeVisitor

public interface IndexTreeVisitor

Visitor interface for traversing the index and two trees in parallel. When merging we deal with up to two tree nodes and a base node. Then we figure out what to do. A File argument is supplied to allow us to check for modifications in a work tree or update the file.


Method Summary
 void finishVisitTree(Tree tree, int i, java.lang.String curDir)
          Invoked after handling all child nodes of a tree, during two way merge.
 void finishVisitTree(Tree tree, Tree auxTree, java.lang.String curDir)
          Invoked after handling all child nodes of a tree, during a three way merge
 void visitEntry(TreeEntry treeEntry, GitIndex.Entry indexEntry, java.io.File file)
          Visit a blob, and corresponding tree and index entries.
 void visitEntry(TreeEntry treeEntry, TreeEntry auxEntry, GitIndex.Entry indexEntry, java.io.File file)
          Visit a blob, and corresponding tree nodes and associated index entry.
 

Method Detail

visitEntry

void visitEntry(TreeEntry treeEntry,
                GitIndex.Entry indexEntry,
                java.io.File file)
                throws java.io.IOException
Visit a blob, and corresponding tree and index entries.

Parameters:
treeEntry -
indexEntry -
file -
Throws:
java.io.IOException

visitEntry

void visitEntry(TreeEntry treeEntry,
                TreeEntry auxEntry,
                GitIndex.Entry indexEntry,
                java.io.File file)
                throws java.io.IOException
Visit a blob, and corresponding tree nodes and associated index entry.

Parameters:
treeEntry -
auxEntry -
indexEntry -
file -
Throws:
java.io.IOException

finishVisitTree

void finishVisitTree(Tree tree,
                     Tree auxTree,
                     java.lang.String curDir)
                     throws java.io.IOException
Invoked after handling all child nodes of a tree, during a three way merge

Parameters:
tree -
auxTree -
curDir -
Throws:
java.io.IOException

finishVisitTree

void finishVisitTree(Tree tree,
                     int i,
                     java.lang.String curDir)
                     throws java.io.IOException
Invoked after handling all child nodes of a tree, during two way merge.

Parameters:
tree -
i -
curDir -
Throws:
java.io.IOException