Blamed and unblamed regions are not symmetrical: An unblamed region is just a range of lines over the file. A blamed region is a Candidate (with the commit info) with a region inside (the range blamed).
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final Repository | |
| private final RevWalk |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static Candidate | |
| pack-priv List | |
| pack-priv static Region | Returns: a new region with the intersection.a region from the blame generator unblamed, CacheRegion a cached region cached)Calculate the intersection between a Region and a CacheRegion, adjusting the start if needed. |
| pack-priv Candidate | Returns: A linked list of Candidates with their blamed regions, null if there was any error.a candidate with a list of unblamed regions candidate)Return one or more candidates blaming all the regions of the "unblamed" incoming candidate. |
| pack-priv List | |
| protected RevCommit |
| cachedRegions | back to summary |
|---|---|
| private final List<CacheRegion> cachedRegions | |
| repo | back to summary |
|---|---|
| private final Repository repo | |
| rw | back to summary |
|---|---|
| private final RevWalk rw | |
| BlameRegionMerger | back to summary |
|---|---|
| pack-priv BlameRegionMerger(Repository repo, RevWalk rw, List<CacheRegion> cachedRegions) | |
| asLinkedCandidate | back to summary |
|---|---|
| private static Candidate asLinkedCandidate(List<Candidate> c) | |
| findOverlaps | back to summary |
|---|---|
| pack-priv List | |
| intersectRegions | back to summary |
|---|---|
| pack-priv static Region intersectRegions(Region unblamed, CacheRegion cached) Calculate the intersection between a Region and a CacheRegion, adjusting the start if needed.
This should be called only if there is an overlap (filtering the cached
regions with
| |
| mergeCandidate | back to summary |
|---|---|
| pack-priv Candidate mergeCandidate(Candidate candidate) Return one or more candidates blaming all the regions of the "unblamed" incoming candidate. | |
| mergeOneRegion | back to summary |
|---|---|
| pack-priv List | |
| parse | back to summary |
|---|---|
| protected RevCommit parse(ObjectId oid) throws IOException | |