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

Mode.cs « LibGit2Sharp - github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b15a2a97bc40dd813a1ff7fbcf993191ed3f0256 (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
namespace LibGit2Sharp
{
    /// <summary>
    /// Git specific modes for entries.
    /// </summary>
    public enum Mode
    {
        // Inspired from http://stackoverflow.com/a/8347325/335418

        /// <summary>
        /// 000000 file mode (the entry doesn't exist)
        /// </summary>
        Nonexistent = 0,

        /// <summary>
        /// 040000 file mode
        /// </summary>
        Directory = 0x4000,

        /// <summary>
        /// 100644 file mode
        /// </summary>
        NonExecutableFile = 0x81A4,

        /// <summary>
        /// Obsolete 100664 file mode.
        /// <para>0100664 mode is an early Git design mistake. It's kept for
        ///   ascendant compatibility as some <see cref="Tree"/> and
        ///   <see cref="Repository.Index"/> entries may still bear
        ///   this mode in some old git repositories, but it's now deprecated.
        /// </para>
        /// </summary>
        NonExecutableGroupWritableFile = 0x81B4,

        /// <summary>
        /// 100755 file mode
        /// </summary>
        ExecutableFile = 0x81ED,

        /// <summary>
        /// 120000 file mode
        /// </summary>
        SymbolicLink = 0xA000,

        /// <summary>
        /// 160000 file mode
        /// </summary>
        GitLink = 0xE000
    }
}