Add option handler for AbstractTreeIterator values
commit4acc3e00e92ffe262601dcb27d7c3c1b3ff91b66
authorShawn O. Pearce <spearce@spearce.org>
Fri, 18 Jul 2008 01:44:02 +0000 (17 21:44 -0400)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Wed, 23 Jul 2008 19:52:08 +0000 (23 21:52 +0200)
tree6ead67fd596500de82dace8e3459ef239d3db501
parentffe125e8e217bd23da280d7e743cbb6f338d4638
Add option handler for AbstractTreeIterator values

Converts String to AbstractTreeIterator on demand.  A string
that can be resolved as a RevTree is read with a canonical
tree iterator, as it is a standard Git tree already stored in
the object database.  Otherwise we assume it is a local file
and scan the filesystem, as it may be a working directory.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit.pgm/src/org/spearce/jgit/pgm/opt/AbstractTreeIteratorHandler.java [new file with mode: 0644]