|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<RevSort> org.eclipse.jgit.revwalk.RevSort
public enum RevSort
Sorting strategies supported by RevWalk
and ObjectWalk
.
Enum Constant Summary | |
---|---|
BOUNDARY
Include RevFlag.UNINTERESTING boundary commits after all others. |
|
COMMIT_TIME_DESC
Sort by commit time, descending (newest first, oldest last). |
|
NONE
No specific sorting is requested. |
|
REVERSE
Flip the output into the reverse ordering. |
|
TOPO
Topological sorting (all children before parents). |
Method Summary | |
---|---|
static RevSort |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static RevSort[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final RevSort NONE
Applications should not rely upon the ordering produced by this strategy. Any ordering in the output is caused by low level implementation details and may change without notice.
public static final RevSort COMMIT_TIME_DESC
This strategy can be combined with TOPO
.
public static final RevSort TOPO
This strategy can be combined with COMMIT_TIME_DESC
.
public static final RevSort REVERSE
This strategy can be combined with the others described by this type as it is usually performed at the very end.
public static final RevSort BOUNDARY
RevFlag.UNINTERESTING
boundary commits after all others.
In ObjectWalk
, objects associated with such commits (trees,
blobs), and all other objects marked explicitly as UNINTERESTING are also
included.
A boundary commit is a UNINTERESTING parent of an interesting commit that was previously output.
Method Detail |
---|
public static RevSort[] values()
for (RevSort c : RevSort.values()) System.out.println(c);
public static RevSort valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |