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:
authorMetalrom <romain.magny@gmail.com>2013-02-20 21:10:24 +0400
committernulltoken <emeric.fermas@gmail.com>2013-02-28 20:17:45 +0400
commitfd218c07649bce79b63cae868be30f077fb1ac33 (patch)
treebc5cdb122245856b282beb4312cc1237595b0748 /LibGit2Sharp/Stash.cs
parent0ab83f0808a23a9ef199ec5cdc4eee69f13ccddf (diff)
Add Repository.Stashes.GetEnumerator()
Diffstat (limited to 'LibGit2Sharp/Stash.cs')
-rw-r--r--LibGit2Sharp/Stash.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/LibGit2Sharp/Stash.cs b/LibGit2Sharp/Stash.cs
index 925dbee8..e31c24b5 100644
--- a/LibGit2Sharp/Stash.cs
+++ b/LibGit2Sharp/Stash.cs
@@ -12,10 +12,9 @@
protected Stash()
{ }
- internal Stash(Repository repo, ObjectId targetId)
- : base(repo, new DirectReference("stash@{0}", repo, targetId), r => r.CanonicalName)
- {
- }
+ internal Stash(Repository repo, ObjectId targetId, int index)
+ : base(repo, new DirectReference(string.Format("stash@{{{0}}}", index), repo, targetId), r => r.CanonicalName)
+ { }
/// <summary>
/// Gets the <see cref = "Commit" /> that this stash points to.