Package org.eclipse.jgit.blame
Class Candidate.BlobCandidate
- java.lang.Object
-
- org.eclipse.jgit.blame.Candidate
-
- org.eclipse.jgit.blame.Candidate.BlobCandidate
-
- Enclosing class:
- Candidate
static final class Candidate.BlobCandidate extends Candidate
Candidate loaded from a file source, and not a commit.The
Candidate.sourceCommitfield is always null on this type of candidate. Instead history traversal follows the singleparentfield to discover the next Candidate. Often this is a normal Candidate type that has a valid sourceCommit.
-
-
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 (package private) java.lang.StringdescriptionAuthor name to refer to this blob with.(package private) CandidateparentNext candidate to pass blame onto.-
Fields inherited from class org.eclipse.jgit.blame.Candidate
queueNext, regionList, renameScore, sourceBlob, sourceCommit, sourcePath, sourceText
-
-
Constructor Summary
Constructors Constructor Description BlobCandidate(Repository repo, java.lang.String name, PathFilter path)
-
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) CandidategetNextCandidate(int idx)(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, loadText, mergeRegions, takeBlame, toString
-
-
-
-
Field Detail
-
parent
Candidate parent
Next candidate to pass blame onto.When computing the differences that this candidate introduced to the file content, the parent's sourceText is used as the base.
-
description
java.lang.String description
Author name to refer to this blob with.
-
-
Constructor Detail
-
BlobCandidate
BlobCandidate(Repository repo, java.lang.String name, PathFilter path)
-
-
Method Detail
-
beginResult
void beginResult(RevWalk rw)
- Overrides:
beginResultin classCandidate
-
getParentCount
int getParentCount()
- Overrides:
getParentCountin classCandidate
-
getNextCandidate
Candidate getNextCandidate(int idx)
- Overrides:
getNextCandidatein classCandidate
-
getAuthor
PersonIdent getAuthor()
-
-