From 1f9d9ddb2b7b2591a9109eb42b9dca222333417d Mon Sep 17 00:00:00 2001 From: Brendan Forster Date: Sun, 10 May 2015 12:59:07 +0200 Subject: Drop optional parameters in StashCollection.cs --- LibGit2Sharp/StashCollection.cs | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/LibGit2Sharp/StashCollection.cs b/LibGit2Sharp/StashCollection.cs index ffe137a5..1bc509a2 100644 --- a/LibGit2Sharp/StashCollection.cs +++ b/LibGit2Sharp/StashCollection.cs @@ -76,6 +76,37 @@ namespace LibGit2Sharp } } + /// + /// Creates a stash with the specified message. + /// + /// The of the user who stashes + /// the newly created + public virtual Stash Add(Signature stasher) + { + return Add(stasher, null, StashModifiers.Default); + } + /// + /// Creates a stash with the specified message. + /// + /// The of the user who stashes + /// A combination of flags + /// the newly created + public virtual Stash Add(Signature stasher, StashModifiers options) + { + return Add(stasher, null, options); + } + + /// + /// Creates a stash with the specified message. + /// + /// The of the user who stashes + /// The message of the stash. + /// the newly created + public virtual Stash Add(Signature stasher, string message) + { + return Add(stasher, message, StashModifiers.Default); + } + /// /// Creates a stash with the specified message. /// @@ -83,7 +114,7 @@ namespace LibGit2Sharp /// The message of the stash. /// A combination of flags /// the newly created - 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"); -- cgit v1.2.3