Skip to content

Commit 3c3674a

Browse files
committed
Mark per-repo config locations obsolete
1 parent 4938414 commit 3c3674a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

LibGit2Sharp/RepositoryOptions.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
namespace LibGit2Sharp
1+
using System;
2+
3+
namespace LibGit2Sharp
24
{
35
/// <summary>
46
/// Provides optional additional information to the Repository to be opened.
@@ -34,6 +36,7 @@ public sealed class RepositoryOptions
3436
/// </para>
3537
/// <seealso cref="GlobalSettings.SetConfigSearchPaths"/>.
3638
/// </summary>
39+
[Obsolete("This option is deprecated. Use GlobalConfiguration.SetConfigSearchPaths()")]
3740
public string GlobalConfigurationLocation { get; set; }
3841

3942
/// <summary>
@@ -44,6 +47,7 @@ public sealed class RepositoryOptions
4447
/// </para>
4548
/// <seealso cref="GlobalSettings.SetConfigSearchPaths"/>.
4649
/// </summary>
50+
[Obsolete("This option is deprecated. Use GlobalConfiguration.SetConfigSearchPaths()")]
4751
public string XdgConfigurationLocation { get; set; }
4852

4953
/// <summary>
@@ -54,6 +58,7 @@ public sealed class RepositoryOptions
5458
/// </para>
5559
/// <seealso cref="GlobalSettings.SetConfigSearchPaths"/>.
5660
/// </summary>
61+
[Obsolete("This option is deprecated. Use GlobalConfiguration.SetConfigSearchPaths()")]
5762
public string SystemConfigurationLocation { get; set; }
5863

5964
/// <summary>

0 commit comments

Comments
 (0)