Allow applications to ask RevWalk to carry flags onto parents
commitf9762242a9058d8077e3ea80479b6448cdf4c510
authorShawn O. Pearce <spearce@spearce.org>
Fri, 25 Apr 2008 01:27:54 +0000 (24 21:27 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 11 May 2008 05:16:31 +0000 (11 01:16 -0400)
treed3481e80cd882fdd0057d26658783b8360624452
parent961bffad719d7eb15c58bd97b8ff23807c2eb0be
Allow applications to ask RevWalk to carry flags onto parents

A very common idiom for RevWalk based applications is to mark
a number of commits with some RevFlag or two, and then walk the
history, carrying those flags onto the parents as we go.  At some
point we are looking for a combination of flags, or just need the
flags there for future reference.

We now permit applications to specify RevFlags which we will carry
onto the parents during a normal walk, allowing the application to
free itself from this part of the process.

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