| Modifier and Type | Field and Description |
|---|---|
protected org.eclipse.jgit.revwalk.RevCommit |
commit
Commit
|
protected Map<org.eclipse.jgit.lib.AnyObjectId,List<String>> |
objects
Duplicate objects
|
| Modifier | Constructor and Description |
|---|---|
protected |
DuplicateContainer(org.eclipse.jgit.revwalk.RevCommit commit)
Create duplicate container
|
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.jgit.revwalk.RevCommit |
getCommit()
Get commits that these duplicates occurred in
|
Map<org.eclipse.jgit.lib.AnyObjectId,List<String>> |
getDuplicates()
Get duplicate blobs ids mapped paths
|
int |
getTotal()
Get total number of duplicates
|
protected DuplicateContainer |
include(org.eclipse.jgit.lib.AnyObjectId id,
String path)
Include id and path as possible duplicate
|
Iterator<Map.Entry<org.eclipse.jgit.lib.AnyObjectId,List<String>>> |
iterator()
Get iterator over all duplicate blobs
|
protected boolean |
validate()
Validate that this container contains at least one duplicate blob
|
protected DuplicateContainer(org.eclipse.jgit.revwalk.RevCommit commit)
commit - protected DuplicateContainer include(org.eclipse.jgit.lib.AnyObjectId id, String path)
id - path - protected boolean validate()
public org.eclipse.jgit.revwalk.RevCommit getCommit()
public Map<org.eclipse.jgit.lib.AnyObjectId,List<String>> getDuplicates()
public Iterator<Map.Entry<org.eclipse.jgit.lib.AnyObjectId,List<String>>> iterator()
public int getTotal()
Copyright © 2011-2015. All Rights Reserved.