Example #1
0
 /// <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);
Example #3
0
 private void Sort(GitSortOptions options)
 {
     NativeMethods.git_revwalk_sorting(handle, options);
 }
Example #4
0
            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);
            }
Example #5
0
 private void Sort(GitSortOptions options)
 {
     Proxy.git_revwalk_sorting(handle, options);
 }
Example #6
0
 public static extern void git_revwalk_sorting(RevWalkerSafeHandle walk, GitSortOptions sort);
 internal EmptyCommitCollection(GitSortOptions sortedBy)
 {
     SortedBy = sortedBy;
 }