|
|
@@ -49,6 +49,7 @@ import org.eclipse.jgit.blame.ReverseWalk.ReverseCommit; |
|
|
|
import org.eclipse.jgit.diff.Edit; |
|
|
|
import org.eclipse.jgit.diff.EditList; |
|
|
|
import org.eclipse.jgit.diff.RawText; |
|
|
|
import org.eclipse.jgit.errors.MissingObjectException; |
|
|
|
import org.eclipse.jgit.lib.Constants; |
|
|
|
import org.eclipse.jgit.lib.ObjectId; |
|
|
|
import org.eclipse.jgit.lib.ObjectLoader; |
|
|
@@ -56,6 +57,7 @@ import org.eclipse.jgit.lib.ObjectReader; |
|
|
|
import org.eclipse.jgit.lib.PersonIdent; |
|
|
|
import org.eclipse.jgit.revwalk.RevCommit; |
|
|
|
import org.eclipse.jgit.revwalk.RevFlag; |
|
|
|
import org.eclipse.jgit.revwalk.RevWalk; |
|
|
|
import org.eclipse.jgit.treewalk.filter.PathFilter; |
|
|
|
|
|
|
|
/** |
|
|
@@ -114,6 +116,10 @@ class Candidate { |
|
|
|
recursivePath = path.shouldBeRecursive(); |
|
|
|
} |
|
|
|
|
|
|
|
void beginResult(RevWalk rw) throws MissingObjectException, IOException { |
|
|
|
rw.parseBody(sourceCommit); |
|
|
|
} |
|
|
|
|
|
|
|
int getParentCount() { |
|
|
|
return sourceCommit.getParentCount(); |
|
|
|
} |
|
|
@@ -405,6 +411,11 @@ class Candidate { |
|
|
|
description = name; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
void beginResult(RevWalk rw) { |
|
|
|
// Blob candidates have nothing to prepare. |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
int getParentCount() { |
|
|
|
return parent != null ? 1 : 0; |