[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[jgit-dev] Re: synchronize patches
|
On Wed, Jul 7, 2010 at 1:19 AM, Shawn O. Pearce <spearce@xxxxxxxxxxx> wrote:
> Right, so a RevTree has no information about the contents of
> the tree. It just knows the ObjectId of it, and also can track
> some flags that we use during the various graph coloring algorithms.
>
> With a RevTree the only way to see its contents is to use a TreeWalk
> and iterate through it:
>
> RevTree theTree = ...;
> TreeWalk tw = new TreeWalk(repository);
> tw.reset();
> tw.addTree(theTree);
>
> while (tw.next())
> ... use the current entry ...
OK, and what about FileTreeEntry class? It is also deprecated? If yes,
then how can I obtain file content from RevBlob?
> Tree and its realted classes are on my list of things-that-must-die.
In this case I should quickly move on RevTree ;)
--
Best regards
GSM: +48 695 192 160
Blog: http://luksza.org
LinkedIn: http://www.linkedin.com/in/dariuszluksza