| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private Repository | |
| private Map |
| Access | Constructor and Description |
|---|---|
| public | PlotWalk(Repository
the repository the walker will obtain data from. repo)Create a new revision walker for a given repository. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| protected RevCommit | createCommit(AnyObjectId
the object this walker requires a commit reference for. id)Overrides org. Construct a new unparsed commit for the given object. |
| public void | dispose()
Overrides org. Dispose all internal state and invalidate all RevObject instances. |
| private Ref[] | |
| public RevCommit | |
| public void | sort(RevSort
a sorting strategy to enable or disable. s, boolean true if this strategy should be used, false if it should be
removed. use)Overrides org. Add or remove a sorting strategy for the returned commits. |
| additionalRefMap | back to summary |
|---|---|
| private Map<AnyObjectId, Set<Ref>> additionalRefMap | |
| repository | back to summary |
|---|---|
| private Repository repository | |
| reverseRefMap | back to summary |
|---|---|
| private Map<AnyObjectId, Set<Ref>> reverseRefMap | |
| PlotWalk | back to summary |
|---|---|
| public PlotWalk(Repository repo) Create a new revision walker for a given repository.
| |
| addAdditionalRefs | back to summary |
|---|---|
| public void addAdditionalRefs(Iterable<Ref> refs) throws IOException Add additional refs to the walk
| |
| createCommit | back to summary |
|---|---|
| protected RevCommit createCommit(AnyObjectId id) Overrides org. Doc from org. Construct a new unparsed commit for the given object.
| |
| dispose | back to summary |
|---|---|
| public void dispose() Overrides org. Doc from org. Dispose all internal state and invalidate all RevObject instances. All RevObject (and thus RevCommit, etc.) instances previously acquired from this RevWalk are invalidated by a dispose call. Applications must not retain or use RevObject instances obtained prior to the dispose call. All RevFlag instances are also invalidated, and must not be reused.
| |
| getRefs | back to summary |
|---|---|
| private Ref[] getRefs(AnyObjectId commitId) throws IOException | |
| next | back to summary |
|---|---|
| public RevCommit next() throws MissingObjectException, IncorrectObjectTypeException, IOException Overrides org. Doc from org. Pop the next most recent commit.
| |
| sort | back to summary |
|---|---|
| public void sort(RevSort s, boolean use) Overrides org. Doc from org. Add or remove a sorting strategy for the returned commits.
Multiple strategies can be applied at once, in which case some strategies
may take precedence over others. As an example,
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(Ref
the first object to be compared. o1, Ref the second object to be compared. o2)Implements java. Compares its two arguments for order. |
| pack-priv int | |
| pack-priv long |
| PlotRefComparator | back to summary |
|---|---|
| pack-priv PlotRefComparator() | |
| compare | back to summary |
|---|---|
| public int compare(Ref o1, Ref o2) Implements java. Doc from java. Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
The implementor must ensure that
The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| kind | back to summary |
|---|---|
| pack-priv int kind(Ref r) | |
| timeof | back to summary |
|---|---|
| pack-priv long timeof(RevObject o) | |