forked from libgit2/libgit2sharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GitWorktree.cs
47 lines (39 loc) · 1.08 KB
/
GitWorktree.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 System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
namespace LibGit2Sharp.Core
{
/**
* Flags which can be passed to git_worktree_prune to alter its
* behavior.
*/
[Flags]
internal enum GitWorktreePruneOptionFlags : uint
{
/// <summary>
/// Prune working tree even if working tree is valid
/// </summary>
GIT_WORKTREE_PRUNE_VALID = (1u << 0),
/// <summary>
/// Prune working tree even if it is locked
/// </summary>
GIT_WORKTREE_PRUNE_LOCKED = (1u << 1),
/// <summary>
/// Prune checked out working tree
/// </summary>
GIT_WORKTREE_PRUNE_WORKING_TREE = (1u << 2)
}
[StructLayout(LayoutKind.Sequential)]
internal class git_worktree_add_options
{
public uint version = 1;
public int locked;
}
[StructLayout(LayoutKind.Sequential)]
internal class git_worktree_prune_options
{
public uint version = 1;
public GitWorktreePruneOptionFlags flags;
}
}