Open tapika opened 2 years ago
By default when you pick up commits using function like this:
repo.Commits.ToArray()
Commits are organized by date time - and if it happens to be the same for two commits, they get randomly re-ordered.
Better query is like this:
repo.Commits.QueryBy(new CommitFilter() { SortBy = CommitSortStrategies.Topological }).ToArray()
Why this cannot be default just to avoid re-arrange problems ?
By default when you pick up commits using function like this:
repo.Commits.ToArray()
Commits are organized by date time - and if it happens to be the same for two commits, they get randomly re-ordered.
Better query is like this:
repo.Commits.QueryBy(new CommitFilter() { SortBy = CommitSortStrategies.Topological }).ToArray()
Why this cannot be default just to avoid re-arrange problems ?