Top Description Fields Constructors Methods
org.eclipse.jgit.revwalk

public final Enum RevSort

extends Enum<RevSort>
Class Inheritance

Sorting strategies supported by org.eclipse.jgit.revwalk.RevWalk and org.eclipse.jgit.revwalk.ObjectWalk.

Field Summary

Modifier and TypeField and Description
public static final RevSort
BOUNDARY

Include RevFlag#UNINTERESTING boundary commits after all others.

public static final RevSort
COMMIT_TIME_DESC

Sort by commit time, descending (newest first, oldest last).

public static final RevSort
NONE

No specific sorting is requested.

public static final RevSort
REVERSE

Flip the output into the reverse ordering.

public static final RevSort
TOPO

Topological sorting (all children before parents).

public static final RevSort
TOPO_KEEP_BRANCH_TOGETHER

Topological sorting (all children before parents) without intermixing lines of history.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static RevSort
public static RevSort[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

BOUNDARYback to summary
public static final RevSort BOUNDARY

Include 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.

COMMIT_TIME_DESCback to summary
public static final RevSort COMMIT_TIME_DESC

Sort by commit time, descending (newest first, oldest last).

This strategy can be combined with TOPO.

NONEback to summary
public static final RevSort NONE

No specific sorting is requested.

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.

REVERSEback to summary
public static final RevSort REVERSE

Flip the output into the reverse ordering.

This strategy can be combined with the others described by this type as it is usually performed at the very end.

TOPOback to summary
public static final RevSort TOPO

Topological sorting (all children before parents).

This strategy can be combined with COMMIT_TIME_DESC.

TOPO_KEEP_BRANCH_TOGETHERback to summary
public static final RevSort TOPO_KEEP_BRANCH_TOGETHER

Topological sorting (all children before parents) without intermixing lines of history.

This behavior more closely resembles C Git's git-log --topo-order than TOPO. See C Git's topo-order description.

Since
5.8

Constructor Detail

RevSortback to summary
private RevSort()

Method Detail

valueOfback to summary
public static RevSort valueOf(String name)
valuesback to summary
public static RevSort[] values()