You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: LibGit2Sharp/Repository.cs
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,17 @@ public sealed class Repository : IRepository
36
36
privatereadonlySubmoduleCollectionsubmodules;
37
37
privatereadonlyLazy<PathCase>pathCase;
38
38
39
+
/// <summary>
40
+
/// Initializes a new instance of the <see cref="Repository"/> class, providing ooptional behavioral overrides through <paramref name="options"/> parameter.
41
+
/// <para>For a standard repository, <paramref name="path"/> should either point to the ".git" folder or to the working directory. For a bare repository, <paramref name="path"/> should directly point to the repository folder.</para>
42
+
/// </summary>
43
+
/// <param name="path">
44
+
/// The path to the git repository to open, can be either the path to the git directory (for non-bare repositories this
45
+
/// would be the ".git" folder inside the working directory) or the path to the working directory.
46
+
/// </param>
47
+
publicRepository(stringpath):this(path,null)
48
+
{}
49
+
39
50
/// <summary>
40
51
/// Initializes a new instance of the <see cref="Repository"/> class, providing ooptional behavioral overrides through <paramref name="options"/> parameter.
41
52
/// <para>For a standard repository, <paramref name="path"/> should either point to the ".git" folder or to the working directory. For a bare repository, <paramref name="path"/> should directly point to the repository folder.</para>
@@ -47,7 +58,7 @@ public sealed class Repository : IRepository
0 commit comments