summary refs log tree commit diff
path: root/LibGitTest/Test3.cs
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-06-05 03:25:53 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-06-05 03:25:53 +0200
commit51d820e22a4517dbb06d38a4f07f7c48522ef811 (patch)
tree4a7749cf77223dff2414fd4b73cb17df43d7449e /LibGitTest/Test3.cs
downloadGitTools-51d820e22a4517dbb06d38a4f07f7c48522ef811.tar.xz
Initial commit HEAD master
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