forked from libgit2/libgit2sharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIQueryableCommitLog.cs
More file actions
32 lines (29 loc) · 1.4 KB
/
IQueryableCommitLog.cs
File metadata and controls
32 lines (29 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System.Collections.Generic;
namespace LibGit2Sharp
{
/// <summary>
/// A log of commits in a <see cref="Repository"/> that can be filtered with queries.
/// </summary>
public interface IQueryableCommitLog : ICommitLog
{
/// <summary>
/// Returns the list of commits of the repository matching the specified <paramref name="filter"/>.
/// </summary>
/// <param name="filter">The options used to control which commits will be returned.</param>
/// <returns>A list of commits, ready to be enumerated.</returns>
ICommitLog QueryBy(CommitFilter filter);
/// <summary>
/// Find the best possible common ancestor given two <see cref="Commit"/>s.
/// </summary>
/// <param name="first">The first <see cref="Commit"/>.</param>
/// <param name="second">The second <see cref="Commit"/>.</param>
/// <returns>The common ancestor or null if none found.</returns>
Commit FindCommonAncestor(Commit first, Commit second);
/// <summary>
/// Find the best possible common ancestor given two or more <see cref="Commit"/>s.
/// </summary>
/// <param name="commits">The <see cref="Commit"/> for which to find the common ancestor.</param>
/// <returns>The common ancestor or null if none found.</returns>
Commit FindCommonAncestor(IEnumerable<Commit> commits);
}
}