-
Notifications
You must be signed in to change notification settings - Fork 892
/
Copy pathRepositoryOptions.cs
41 lines (38 loc) · 1.61 KB
/
RepositoryOptions.cs
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
33
34
35
36
37
38
39
40
41
using System;
namespace LibGit2Sharp
{
/// <summary>
/// Provides optional additional information to the Repository to be opened.
/// </summary>
public sealed class RepositoryOptions
{
/// <summary>
/// Overrides the probed location of the working directory of a standard repository,
/// or, combined with <see cref="IndexPath"/>, would
/// allow to work against a bare repository as it was a standard one.
/// <para>
/// The path has to lead to an existing directory.
/// </para>
/// </summary>
public string WorkingDirectoryPath { get; set; }
/// <summary>
/// Overrides the probed location of the Index file of a standard repository,
/// or, combined with <see cref="WorkingDirectoryPath"/>, would
/// allow to work against a bare repository as it was a standard one.
/// <para>
/// The path has either to lead to an existing valid Index file,
/// or to a non existent Index file which will be eventually created.
/// </para>
/// </summary>
public string IndexPath { get; set; }
/// <summary>
/// Overrides the default identity to be used when creating reflog entries.
/// <para>
/// When unset the identity will be retreived from the repository's configuration.
/// When no identity can be found in the repository configuration stores, a fake
/// identity ("unknown" as both name and email), will be used.
/// </para>
/// </summary>
public Identity Identity { get; set; }
}
}