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.sourceCommit
field is always null on this type of candidate. Instead history traversal follows the singleparent
field 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.String
description
Author name to refer to this blob with.(package private) Candidate
parent
Next 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) void
add(RevFlag flag)
(package private) void
beginResult(RevWalk rw)
(package private) PersonIdent
getAuthor()
(package private) Candidate
getNextCandidate(int idx)
(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, 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:
beginResult
in classCandidate
-
getParentCount
int getParentCount()
- Overrides:
getParentCount
in classCandidate
-
getNextCandidate
Candidate getNextCandidate(int idx)
- Overrides:
getNextCandidate
in classCandidate
-
getAuthor
PersonIdent getAuthor()
-
-