summary refs log tree commit diff
path: root/LibGitTest/Test3.cs
diff options
context:
space:
mode:
Diffstat (limited to 'LibGitTest/Test3.cs')
-rw-r--r--LibGitTest/Test3.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/LibGitTest/Test3.cs b/LibGitTest/Test3.cs
new file mode 100644
index 0000000..be7275f
--- /dev/null
+++ b/LibGitTest/Test3.cs
@@ -0,0 +1,17 @@
+using LibGit;
+using LibGit.Extensions;
+
+namespace LibGitTest;
+
+public class Test3
+{
+    public static async Task Run()
+    {
+        var repo = new GitRepo(new FileRepoSource(@"/home/root@Rory/tmpgit/fosscord-server.git"));
+        var packs = repo.GetPacks().GetAsyncEnumerator();
+        while(await packs.MoveNextAsync())
+        {
+            Console.WriteLine(packs.Current.ToJson());
+        }
+    }
+}
\ No newline at end of file