Allow RevWalk applications to add new starting roots during traversal
commit76e302a13dc156b67e32b2eba28034cd7bdf4612
authorShawn O. Pearce <spearce@spearce.org>
Fri, 25 Apr 2008 02:47:53 +0000 (24 22:47 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 11 May 2008 05:16:31 +0000 (11 01:16 -0400)
tree8ebfc6b7bf1ddb2d282e25cf323c8811f6bd1dbb
parentf9762242a9058d8077e3ea80479b6448cdf4c510
Allow RevWalk applications to add new starting roots during traversal

Some applications may discover new commits during traversal that they
really need to include in the current traversal, or at least have in
the current traversal so that flags will carry down through history
and fall onto the correct locations later on.

We now give the RevWalk direct access to the queue that backs the
pending generator (the main processing loop), so that RevWalk's
own markStart and markUninteresting methods can be used to insert
new items into the queue structure.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/revwalk/AbstractRevQueue.java
org.spearce.jgit/src/org/spearce/jgit/revwalk/Generator.java
org.spearce.jgit/src/org/spearce/jgit/revwalk/RevWalk.java
org.spearce.jgit/src/org/spearce/jgit/revwalk/StartGenerator.java