Welcome to mirror list, hosted at ThFree Co, Russian Federation.

GitStatusOptions.cs « Core « LibGit2Sharp - github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5d02ebfe92bff1f18e1668910bbb0aa4ef16681f (plain)
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
48
49
50
51
52
53
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;

namespace LibGit2Sharp.Core
{
    [StructLayout(LayoutKind.Sequential)]
    internal class GitStatusOptions : IDisposable
    {
        public uint Version = 1;

        public GitStatusShow Show;
        public GitStatusOptionFlags Flags;

        GitStrArrayIn PathSpec;

        public void Dispose()
        {
            if (PathSpec == null)
            {
                return;
            }

            PathSpec.Dispose();
        }
    }

    internal enum GitStatusShow
    {
        IndexAndWorkDir = 0,
        IndexOnly = 1,
        WorkDirOnly = 2,
    }

    [Flags]
    internal enum GitStatusOptionFlags
    {
        IncludeUntracked = (1 << 0),
        IncludeIgnored = (1 << 1),
        IncludeUnmodified = (1 << 2),
        ExcludeSubmodules = (1 << 3),
        RecurseUntrackedDirs = (1 << 4),
        DisablePathspecMatch = (1 << 5),
        RecurseIgnoredDirs = (1 << 6),
        RenamesHeadToIndex = (1 << 7),
        RenamesIndexToWorkDir = (1 << 8),
        SortCaseSensitively = (1 << 9),
        SortCaseInsensitively = (1 << 10),
        RenamesFromRewrites = (1 << 11),
    }
}