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

FileStatus.cs « LibGit2Sharp - github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c0d2df000079e127ae5cd6122139573ecedbc78f (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
using System;

namespace LibGit2Sharp
{
    /// <summary>
    ///   Calculated status of a filepath in the working directory considering the current <see cref = "Repository.Index" /> and the <see cref="Repository.Head" />.
    /// </summary>
    [Flags]
    public enum FileStatus
    {
        /// <summary>
        ///   The file doesn't exist.
        /// </summary>
        Nonexistent = (1 << 31),

        /// <summary>
        ///   The file hasn't been modified.
        /// </summary>
        Unaltered = 0, /* GIT_STATUS_CURRENT */

        /// <summary>
        ///   New file has been added to the Index. It's unknown from the Head.
        /// </summary>
        Added = (1 << 0), /* GIT_STATUS_INDEX_NEW */

        /// <summary>
        ///   New version of a file has been added to the Index. A previous version exists in the Head.
        /// </summary>
        Staged = (1 << 1), /* GIT_STATUS_INDEX_MODIFIED */

        /// <summary>
        ///   The deletion of a file has been promoted from the working directory to the Index. A previous version exists in the Head.
        /// </summary>
        Removed = (1 << 2), /* GIT_STATUS_INDEX_DELETED */

        /// <summary>
        ///   The renaming of a file has been promoted from the working directory to the Index. A previous version exists in the Head.
        /// </summary>
        Renamed = (1 << 3), /* GIT_STATUS_INDEX_RENAMED */

        /// <summary>
        ///   A change in type for a file has been promoted from the working directory to the Index. A previous version exists in the Head.
        /// </summary>
        StagedTypeChange = (1 << 4), /* GIT_STATUS_INDEX_TYPECHANGE */

        /// <summary>
        ///   New file in the working directory, unknown from the Index and the Head.
        /// </summary>
        Untracked = (1 << 7), /* GIT_STATUS_WT_NEW */

        /// <summary>
        ///   The file has been updated in the working directory. A previous version exists in the Index.
        /// </summary>
        Modified = (1 << 8), /* GIT_STATUS_WT_MODIFIED */

        /// <summary>
        ///   The file has been deleted from the working directory. A previous version exists in the Index.
        /// </summary>
        Missing = (1 << 9), /* GIT_STATUS_WT_DELETED */

        /// <summary>
        ///   The file type has been changed in the working directory. A previous version exists in the Index.
        /// </summary>
        TypeChanged = (1 << 10), /* GIT_STATUS_WT_TYPECHANGE */

        /// <summary>
        ///   The file is <see cref="Untracked"/> but its name and/or path matches an exclude pattern in a <c>gitignore</c> file.
        /// </summary>
        Ignored = (1 << 14), /* GIT_STATUS_IGNORED */
    }
}