CommitSortStrategies Class

Summary

Specifies how commits are ordered when traversing the commit graph.
Assembly
GitVersion.Core.dll
Namespace
GitVersion.Git
Base Types
  • Enum
graph BT Type-->Base0["Enum"] Type["CommitSortStrategies"] class Type type-node

Syntax

public sealed class CommitSortStrategies : Enum

Attributes

Type Description
FlagsAttribute

Fields

Name Constant Value Summary
None 0
Sort the commits in no particular ordering; this sorting is arbitrary, implementation-specific and subject to change at any time.
static
Reverse 4
Iterate through the commits in reverse order; this sorting mode can be combined with any of the above.
static
Time 2
Sort the commits by commit time; this sorting mode can be combined with topological sorting.
static
Topological 1
Sort the commits in topological order (parents before children); this sorting mode can be combined with time sorting.
static
value__

Extension Methods

Name Value Summary
NotNull<CommitSortStrategies>(string) T
Throws System.ArgumentNullException when value is null; otherwise returns the value.