/// <summary> /// Initializes a new instance of the <see cref = "CommitCollection" /> class. /// </summary> /// <param name = "repo">The repository.</param> /// <param name = "sortingStrategy">The sorting strategy which should be applied when enumerating the commits.</param> internal CommitCollection(Repository repo, GitSortOptions sortingStrategy) { this.repo = repo; sortOptions = sortingStrategy; }
public static extern void git_revwalk_sorting(RevWalkerSafeHandle walk, GitSortOptions sort);
private void Sort(GitSortOptions options) { NativeMethods.git_revwalk_sorting(handle, options); }
public CommitEnumerator(Repository repo, IList <object> includedIdentifier, IList <object> excludedIdentifier, GitSortOptions sortingStrategy) { this.repo = repo; int res = NativeMethods.git_revwalk_new(out handle, repo.Handle); repo.RegisterForCleanup(handle); Ensure.Success(res); Sort(sortingStrategy); Push(includedIdentifier); Hide(excludedIdentifier); }
private void Sort(GitSortOptions options) { Proxy.git_revwalk_sorting(handle, options); }
internal EmptyCommitCollection(GitSortOptions sortedBy) { SortedBy = sortedBy; }