-
Notifications
You must be signed in to change notification settings - Fork 895
/
Copy pathPatchApplyOptions.cs
37 lines (34 loc) · 1.08 KB
/
PatchApplyOptions.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
namespace LibGit2Sharp
{
/// <summary>
/// The options to be used for patch application.
/// </summary>
public sealed class PatchApplyOptions
{
/// <summary>
/// The location to apply (workdir, index or both)
/// </summary>
public PatchApplyLocation Location { get; set; }
}
/// <summary>
/// Possible application locations for applying a patch.
/// </summary>
public enum PatchApplyLocation
{
/// <summary>
/// Apply the patch to the workdir, leaving the index untouched.
/// This is the equivalent of `git apply` with no location argument.
/// </summary>
Workdir = 0,
/// <summary>
/// Apply the patch to the index, leaving the working directory
/// untouched. This is the equivalent of `git apply --cached`.
/// </summary>
Index = 1,
/// <summary>
/// Apply the patch to both the working directory and the index.
/// This is the equivalent of `git apply --index`.
/// </summary>
Both = 2
}
}