blob: 292a0c3f88105f241c782b77dce31d11537cf9cc (
plain)
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(Filter 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);
}
}
|