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

BlameOptions.cs « LibGit2Sharp - github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1fa41a1d28678aa883ddca2d36c7ca68bcf4b3b8 (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
using System;

namespace LibGit2Sharp
{
    /// <summary>
    /// Strategy used for blaming.
    /// </summary>
    public enum BlameStrategy
    {
        /// <summary>
        /// Track renames of the file, but no block movement.
        /// </summary>
        Default,

        // Track copies within the same file. (NOT SUPPORTED IN LIBGIT2 YET)
        //TrackCopiesSameFile,

        // Track movement across files within the same commit. (NOT SUPPORTED IN LIBGIT2 YET)
        //TrackCopiesSameCommitMoves,

        // Track copies across files within the same commit. (NOT SUPPORTED IN LIBGIT2 YET)
        //TrackCopiesSameCommitCopies,

        // Track copies across all files in all commits. (NOT SUPPORTED IN LIBGIT2 YET)
        //TrackCopiesAnyCommitCopies
    }

    /// <summary>
    /// Optional adjustments to the behavior of blame.
    /// </summary>
    public sealed class BlameOptions
    {
        /// <summary>
        /// Strategy to use to determine the blame for each line.
        /// The default is <see cref="BlameStrategy.Default"/>.
        /// </summary>
        public BlameStrategy Strategy { get; set; }

        /// <summary>
        /// Latest commitish to consider (the starting point).
        /// If null, blame will use HEAD.
        /// </summary>
        public object StartingAt { get; set; }

        /// <summary>
        /// Oldest commitish to consider (the stopping point).
        /// If null, blame will continue until all the lines have been blamed,
        /// or until a commit with no parents is reached.
        /// </summary>
        public object StoppingAt { get; set; }

        /// <summary>
        /// First text line in the file to blame (lines start at 1).
        /// If this is set to 0, the blame begins at line 1.
        /// </summary>
        public int MinLine { get; set; }

        /// <summary>
        /// Last text line in the file to blame (lines start at 1).
        /// If this is set to 0, blame ends with the last line in the file.
        /// </summary>
        public int MaxLine { get; set; }
    }
}