Enum Class GitRevListWalk
- All Implemented Interfaces:
Serializable,Comparable<GitRevListWalk>,Constable
Enumerates the possible traversal (walk) modes for
git rev-list, controlling use of the --do-walk
and --no-walk flags.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionApplygit rev-list's default behaviour.Walk commit ancestors.Do not walk commit ancestry; instead, only return the explicitly-requested commits.A variant of--no-walkintroduced in Git 1.8.0 which returns the commits in the same order they were requested in where--no-walksorts them by date. -
Method Summary
Modifier and TypeMethodDescriptiongetFlag()booleanstatic GitRevListWalkReturns the enum constant of this class with the specified name.static GitRevListWalk[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Applygit rev-list's default behaviour. For Git 1.x and 2.x, this is a synonym forDO_WALK. -
DO_WALK
Walk commit ancestors. -
NO_WALK
Do not walk commit ancestry; instead, only return the explicitly-requested commits. Commits are sorted when using this flag, so, while only requested commits will be returned, they may not be returned in the same order they were requested in. To maintain the order, use--no-walk=unsortedinstead.Note: When using this mode, no excludes can be provided; processing excludes requires walking ancestry.
-
NO_WALK_UNSORTED
A variant of--no-walkintroduced in Git 1.8.0 which returns the commits in the same order they were requested in where--no-walksorts them by date.Note: When using this mode, no excludes can be provided; processing excludes requires walking ancestry.
- Since:
- 4.12
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getFlag
-
isFlagged
public boolean isFlagged()
-