]> source.dussan.org Git - jgit.git/commit
Parse RevCommit bodies before calling RevFilter.include() 09/2309/4
authorJesse Greenwald <jesse.greenwald@garmin.com>
Fri, 14 Jan 2011 22:34:35 +0000 (16:34 -0600)
committerChris Aniszczyk <caniszczyk@gmail.com>
Tue, 25 Jan 2011 22:39:00 +0000 (16:39 -0600)
commit51dedfdc319d51aa729f3e2801c4a06491d6ddac
treeb95e6d25b319962fea7527d5d4c7eb5e0cdfba7d
parent920ac08777d4048c06c8d7a3671d37c5ead5917f
Parse RevCommit bodies before calling RevFilter.include()

RevFilter.include()'s documentation promises the RevCommit's
body is parsed before include is invoked.  This wasn't always
true if the commit was parsed once, had its body discarded,
the RevWalk was reset() and started a new traversal.

Change-Id: Ie5cafde09ae870712b165d8a97a2c9daf90b1dbd
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/revwalk/RevWalkResetTest.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/revwalk/PendingGenerator.java