Allow RevCommit callers to access the parent array directly
commit0bf5b21c659e2d88ab60ef0d17dff03d4a20134f
authorShawn O. Pearce <spearce@spearce.org>
Sun, 20 Apr 2008 02:15:32 +0000 (19 22:15 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 11 May 2008 05:16:30 +0000 (11 01:16 -0400)
tree73db35a5cf6b2f94144dc13ae0819fc8fd443c6f
parenta8c60ca6abbb2a7cc49035ec8a013c550c4f816b
Allow RevCommit callers to access the parent array directly

Some application level code can be written easier using a Java 5
for loop style syntax, which requires an array or an Iterateable.
Rather than using ints to loop over the parents we can let the
application get to the internal array, and iterate over that.

Since we already expose the byte[] for the complete body there
is little risk to also exposing the complete parent array.

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