diff options
author | nulltoken <emeric.fermas@gmail.com> | 2013-06-26 17:20:29 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2013-06-28 22:17:05 +0400 |
commit | 6a257ed0d22eefd1899173021adbe882f04d7e7f (patch) | |
tree | a667c6f2f1d6388d936798a984767005acdfa472 /LibGit2Sharp/CommitSortStrategies.cs | |
parent | 7d9baab78e850ada6e88ef09c5b795793e7bd7b6 (diff) |
Rename GitSortOptions into CommitSortStrategies
Diffstat (limited to 'LibGit2Sharp/CommitSortStrategies.cs')
-rw-r--r-- | LibGit2Sharp/CommitSortStrategies.cs | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/LibGit2Sharp/CommitSortStrategies.cs b/LibGit2Sharp/CommitSortStrategies.cs new file mode 100644 index 00000000..e1b36553 --- /dev/null +++ b/LibGit2Sharp/CommitSortStrategies.cs @@ -0,0 +1,39 @@ +using System; + +namespace LibGit2Sharp +{ + /// <summary> + /// Determines the sorting strategy when iterating through the commits of the repository + /// </summary> + [Flags] + public enum CommitSortStrategies + { + /// <summary> + /// Sort the commits in no particular ordering; + /// this sorting is arbitrary, implementation-specific + /// and subject to change at any time. + /// </summary> + None = 0, + + /// <summary> + /// Sort the commits in topological order + /// (parents before children); this sorting mode + /// can be combined with time sorting. + /// </summary> + Topological = (1 << 0), + + /// <summary> + /// Sort the commits by commit time; + /// this sorting mode can be combined with + /// topological sorting. + /// </summary> + Time = (1 << 1), + + /// <summary> + /// Iterate through the commits in reverse + /// order; this sorting mode can be combined with + /// any of the above. + /// </summary> + Reverse = (1 << 2) + } +} |