-
Notifications
You must be signed in to change notification settings - Fork 892
/
Copy pathStashApplyOptions.cs
47 lines (42 loc) · 1.41 KB
/
StashApplyOptions.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
42
43
44
45
46
47
using System;
using LibGit2Sharp.Handlers;
namespace LibGit2Sharp
{
/// <summary>
/// The options to be used for stash application.
/// </summary>
public sealed class StashApplyOptions
{
/// <summary>
/// <see cref="StashApplyModifiers"/> for controlling checkout index reinstating./>
/// </summary>
/// <value>The flags.</value>
public StashApplyModifiers ApplyModifiers { get; set; }
/// <summary>
/// <see cref="CheckoutOptions"/> controlling checkout behavior.
/// </summary>
/// <value>The checkout options.</value>
public CheckoutOptions CheckoutOptions { get; set; }
/// <summary>
/// <see cref="StashApplyProgressHandler"/> for controlling stash application progress./>
/// </summary>
/// <value>The progress handler.</value>
public StashApplyProgressHandler ProgressHandler { get; set; }
}
/// <summary>
/// The flags which control whether the index should be reinstated.
/// </summary>
[Flags]
public enum StashApplyModifiers
{
/// <summary>
/// Default. Will apply the stash and result in an index with conflicts
/// if any arise.
/// </summary>
Default = 0,
/// <summary>
/// In case any conflicts arise, this will not apply the stash.
/// </summary>
ReinstateIndex = (1 << 0),
}
}