Skip to content

Commit 5dbb6c0

Browse files
committed
deprecate optional in Repository.Init
1 parent 1040d64 commit 5dbb6c0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

LibGit2Sharp/Repository.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,13 +365,23 @@ private void Dispose(bool disposing)
365365

366366
#endregion
367367

368+
/// <summary>
369+
/// Initialize a repository at the specified <paramref name="path"/>.
370+
/// </summary>
371+
/// <param name="path">The path to the working folder when initializing a standard ".git" repository. Otherwise, when initializing a bare repository, the path to the expected location of this later.</param>
372+
/// <returns>The path to the created repository.</returns>
373+
public static string Init(string path)
374+
{
375+
return Init(path, false);
376+
}
377+
368378
/// <summary>
369379
/// Initialize a repository at the specified <paramref name="path"/>.
370380
/// </summary>
371381
/// <param name="path">The path to the working folder when initializing a standard ".git" repository. Otherwise, when initializing a bare repository, the path to the expected location of this later.</param>
372382
/// <param name="isBare">true to initialize a bare repository. False otherwise, to initialize a standard ".git" repository.</param>
373383
/// <returns>The path to the created repository.</returns>
374-
public static string Init(string path, bool isBare = false)
384+
public static string Init(string path, bool isBare)
375385
{
376386
Ensure.ArgumentNotNullOrEmptyString(path, "path");
377387

0 commit comments

Comments
 (0)