From 51d820e22a4517dbb06d38a4f07f7c48522ef811 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Mon, 5 Jun 2023 03:25:53 +0200 Subject: Initial commit --- LibGitTest/Test3.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 LibGitTest/Test3.cs (limited to 'LibGitTest/Test3.cs') 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 -- cgit 1.5.1