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

ResetMode.cs « LibGit2Sharp - github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fa52d1e6f4814cffbfe9e431f9141440e6a39a3f (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
namespace LibGit2Sharp
{
    /// <summary>
    /// Specifies the kind of operation that <see cref="IRepository.Reset(LibGit2Sharp.ResetMode, Commit, Signature, string)"/> should perform.
    /// </summary>
    public enum ResetMode
    {
        /// <summary>
        /// Moves the branch pointed to by HEAD to the specified commit object.
        /// </summary>
        Soft = 1,

        /// <summary>
        /// Moves the branch pointed to by HEAD to the specified commit object and resets the index
        /// to the tree recorded by the commit.
        /// </summary>
        Mixed,

        /// <summary>
        /// Moves the branch pointed to by HEAD to the specified commit object, resets the index
        /// to the tree recorded by the commit and updates the working directory to match the content
        /// of the index.
        /// </summary>
        Hard,
    }
}