diff options
author | Pavel Belousov <pavel.mephi@gmail.com> | 2013-11-07 20:42:36 +0400 |
---|---|---|
committer | Pavel Belousov <pavel.mephi@gmail.com> | 2013-11-08 07:20:07 +0400 |
commit | 2553c80114040517be2495ea081fa6384a60fbb4 (patch) | |
tree | fa03cec59959d76f4df42a2a607666f794c430e6 /LibGit2Sharp/IRepository.cs | |
parent | 5e62858541fcb6c0dd708cc61a1488a7fa48d47d (diff) |
Deprecated ResetOptions in favor ResetMode.
Diffstat (limited to 'LibGit2Sharp/IRepository.cs')
-rw-r--r-- | LibGit2Sharp/IRepository.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/LibGit2Sharp/IRepository.cs b/LibGit2Sharp/IRepository.cs index d8350011..a4697949 100644 --- a/LibGit2Sharp/IRepository.cs +++ b/LibGit2Sharp/IRepository.cs @@ -170,9 +170,18 @@ namespace LibGit2Sharp /// </summary> /// <param name="resetOptions">Flavor of reset operation to perform.</param> /// <param name="commit">The target commit object.</param> + [Obsolete("This method will be removed in the next release. Please use Reset(ResetMode, Commit) instead.")] void Reset(ResetOptions resetOptions, Commit commit); /// <summary> + /// Sets the current <see cref="Head"/> to the specified commit and optionally resets the <see cref="Index"/> and + /// the content of the working tree to match. + /// </summary> + /// <param name="resetMode">Flavor of reset operation to perform.</param> + /// <param name="commit">The target commit object.</param> + void Reset(ResetMode resetMode, Commit commit); + + /// <summary> /// Replaces entries in the <see cref="Repository.Index"/> with entries from the specified commit. /// </summary> /// <param name="commit">The target commit object.</param> |