[smuxi] [Engine] Implemented GitMessageBuffer.GetEnumerator()



commit 1dc68736ae2fab2dbfc9591486983aa1c6005cf7
Author: Mirco Bauer <meebey meebey net>
Date:   Sun Feb 26 12:00:17 2012 +0100

    [Engine] Implemented GitMessageBuffer.GetEnumerator()

 src/Engine/MessageBuffers/GitMessageBuffer.cs |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/Engine/MessageBuffers/GitMessageBuffer.cs b/src/Engine/MessageBuffers/GitMessageBuffer.cs
index 547208f..f0bf5fd 100644
--- a/src/Engine/MessageBuffers/GitMessageBuffer.cs
+++ b/src/Engine/MessageBuffers/GitMessageBuffer.cs
@@ -185,9 +185,11 @@ namespace Smuxi.Engine
             throw new NotImplementedException ();
         }
 
-        public override System.Collections.Generic.IEnumerator<MessageModel> GetEnumerator ()
+        public override IEnumerator<MessageModel> GetEnumerator()
         {
-            throw new NotImplementedException ();
+            foreach (var entry in Repository.Index) {
+                yield return GetMessage(entry.Id);
+            }
         }
 
         public override int IndexOf (MessageModel item)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]