diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-06-05 03:25:53 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-06-05 03:25:53 +0200 |
commit | 51d820e22a4517dbb06d38a4f07f7c48522ef811 (patch) | |
tree | 4a7749cf77223dff2414fd4b73cb17df43d7449e /LibGitTest/Test3.cs | |
download | GitTools-51d820e22a4517dbb06d38a4f07f7c48522ef811.tar.xz |
Diffstat (limited to 'LibGitTest/Test3.cs')
-rw-r--r-- | LibGitTest/Test3.cs | 17 |
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 |