static final class Candidate.HeadCandidate extends Candidate
Candidate
to blame a working tree file in conflict state.
Contrary to Candidate.BlobCandidate
, it expects to be given the parent
commits (typically HEAD and the MERGE_HEADs) and behaves like a merge
commit during blame. It does not consider a previously pushed
Candidate as its parent.
Candidate.BlobCandidate, Candidate.HeadCandidate, Candidate.ReverseCandidate
Modifier and Type | Field and Description |
---|---|
private java.util.List<RevCommit> |
parents |
queueNext, regionList, renameScore, sourceBlob, sourceCommit, sourcePath, sourceText
Constructor and Description |
---|
HeadCandidate(Repository repo,
PathFilter path,
java.util.List<RevCommit> parents) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
add(RevFlag flag) |
(package private) void |
beginResult(RevWalk rw) |
(package private) PersonIdent |
getAuthor() |
(package private) RevCommit |
getParent(int idx) |
(package private) int |
getParentCount() |
(package private) int |
getTime() |
(package private) boolean |
has(RevFlag flag) |
(package private) void |
remove(RevFlag flag) |
canMergeRegions, copy, create, getNextCandidate, loadText, mergeRegions, takeBlame, toString
private java.util.List<RevCommit> parents
HeadCandidate(Repository repo, PathFilter path, java.util.List<RevCommit> parents)
void beginResult(RevWalk rw)
beginResult
in class Candidate
int getParentCount()
getParentCount
in class Candidate
PersonIdent getAuthor()