Define a utility function RevWalk to test merge bases
commit8ed9d2e983bdb6643f3cd21b03786d94266e0e11
authorShawn O. Pearce <spearce@spearce.org>
Sat, 26 Apr 2008 17:11:12 +0000 (26 13:11 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 11 May 2008 05:16:32 +0000 (11 01:16 -0400)
tree509a2ea46d8ae23fdc93ed18b69f759cafa19102
parent5df542d766f54cfe0b94022235b63f201c7f103c
Define a utility function RevWalk to test merge bases

A frequent function for many Git based applications is to test
if one commit is inside of the merge base of another.  To do
that we need to configure the RevWalk to perform a filtered
walk using RevWalk.MERGE_BASE and retain as many application
RevFlags as we can.

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