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
ACandidateto 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) voidadd(RevFlag flag)(package private) voidbeginResult(RevWalk rw)(package private) PersonIdentgetAuthor()(package private) RevCommitgetParent(int idx)(package private) intgetParentCount()(package private) intgetTime()(package private) booleanhas(RevFlag flag)(package private) voidremove(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:
beginResultin classCandidate
-
getParentCount
int getParentCount()
- Overrides:
getParentCountin classCandidate
-
getAuthor
PersonIdent getAuthor()
-
-