Package org.eclipse.jgit.blame
Class Candidate.HeadCandidate
- java.lang.Object
-
- org.eclipse.jgit.blame.Candidate
-
- org.eclipse.jgit.blame.Candidate.HeadCandidate
-
- Enclosing class:
- Candidate
static final class Candidate.HeadCandidate extends Candidate
ACandidate
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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jgit.blame.Candidate
Candidate.BlobCandidate, Candidate.HeadCandidate, Candidate.ReverseCandidate
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<RevCommit>
parents
-
Fields inherited from class org.eclipse.jgit.blame.Candidate
queueNext, regionList, renameScore, sourceBlob, sourceCommit, sourcePath, sourceText
-
-
Constructor Summary
Constructors Constructor Description HeadCandidate(Repository repo, PathFilter path, java.util.List<RevCommit> parents)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class org.eclipse.jgit.blame.Candidate
canMergeRegions, copy, create, getNextCandidate, loadText, mergeRegions, takeBlame, toString
-
-
-
-
Field Detail
-
parents
private java.util.List<RevCommit> parents
-
-
Constructor Detail
-
HeadCandidate
HeadCandidate(Repository repo, PathFilter path, java.util.List<RevCommit> parents)
-
-
Method Detail
-
beginResult
void beginResult(RevWalk rw)
- Overrides:
beginResult
in classCandidate
-
getParentCount
int getParentCount()
- Overrides:
getParentCount
in classCandidate
-
getAuthor
PersonIdent getAuthor()
-
-