Skip to content

Commit 0961ea7

Browse files
authored
Merge pull request #2132 from libgit2/clone-options-ctor
Add a CloneOptions constructor that takes a FetchOptions
2 parents 17a2dee + aacf7cd commit 0961ea7

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

LibGit2Sharp/CloneOptions.cs

+13-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,23 @@
44
namespace LibGit2Sharp
55
{
66
/// <summary>
7-
/// Options to define clone behaviour
7+
/// Options to define clone behavior
88
/// </summary>
99
public sealed class CloneOptions : IConvertableToGitCheckoutOpts
1010
{
1111
/// <summary>
12-
/// Creates default <see cref="CloneOptions"/> for a non-bare clone
12+
/// Creates <see cref="CloneOptions"/> with specified <see cref="FetchOptions"/> for a non-bare clone.
13+
/// </summary>
14+
/// <param name="fetchOptions">The fetch options to use.</param>
15+
public CloneOptions(FetchOptions fetchOptions) : this()
16+
{
17+
Ensure.ArgumentNotNull(fetchOptions, "fetchOptions");
18+
19+
FetchOptions = fetchOptions;
20+
}
21+
22+
/// <summary>
23+
/// Creates default <see cref="CloneOptions"/> for a non-bare clone.
1324
/// </summary>
1425
public CloneOptions()
1526
{

0 commit comments

Comments
 (0)