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

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrendan Forster <brendan@github.com>2015-05-10 13:59:07 +0300
committernulltoken <emeric.fermas@gmail.com>2015-05-15 20:31:44 +0300
commit1f9d9ddb2b7b2591a9109eb42b9dca222333417d (patch)
tree1a1637b45e26ff111b757d0c1add7566fd2f905a
parent9b26f363ad86509bbea697c9ac7bddba8e16c0c0 (diff)
Drop optional parameters in StashCollection.cs
-rw-r--r--LibGit2Sharp/StashCollection.cs33
1 files changed, 32 insertions, 1 deletions
diff --git a/LibGit2Sharp/StashCollection.cs b/LibGit2Sharp/StashCollection.cs
index ffe137a5..1bc509a2 100644
--- a/LibGit2Sharp/StashCollection.cs
+++ b/LibGit2Sharp/StashCollection.cs
@@ -80,10 +80,41 @@ namespace LibGit2Sharp
/// Creates a stash with the specified message.
/// </summary>
/// <param name="stasher">The <see cref="Signature"/> of the user who stashes </param>
+ /// <returns>the newly created <see cref="Stash"/></returns>
+ public virtual Stash Add(Signature stasher)
+ {
+ return Add(stasher, null, StashModifiers.Default);
+ }
+ /// <summary>
+ /// Creates a stash with the specified message.
+ /// </summary>
+ /// <param name="stasher">The <see cref="Signature"/> of the user who stashes </param>
+ /// <param name="options">A combination of <see cref="StashModifiers"/> flags</param>
+ /// <returns>the newly created <see cref="Stash"/></returns>
+ public virtual Stash Add(Signature stasher, StashModifiers options)
+ {
+ return Add(stasher, null, options);
+ }
+
+ /// <summary>
+ /// Creates a stash with the specified message.
+ /// </summary>
+ /// <param name="stasher">The <see cref="Signature"/> of the user who stashes </param>
+ /// <param name="message">The message of the stash.</param>
+ /// <returns>the newly created <see cref="Stash"/></returns>
+ public virtual Stash Add(Signature stasher, string message)
+ {
+ return Add(stasher, message, StashModifiers.Default);
+ }
+
+ /// <summary>
+ /// Creates a stash with the specified message.
+ /// </summary>
+ /// <param name="stasher">The <see cref="Signature"/> of the user who stashes </param>
/// <param name="message">The message of the stash.</param>
/// <param name="options">A combination of <see cref="StashModifiers"/> flags</param>
/// <returns>the newly created <see cref="Stash"/></returns>
- public virtual Stash Add(Signature stasher, string message = null, StashModifiers options = StashModifiers.Default)
+ public virtual Stash Add(Signature stasher, string message, StashModifiers options)
{
Ensure.ArgumentNotNull(stasher, "stasher");