1 files changed, 6 insertions, 3 deletions
diff --git a/LibGitTest/Test3.cs b/LibGitTest/Test3.cs
index be7275f..24d6986 100644
--- a/LibGitTest/Test3.cs
+++ b/LibGitTest/Test3.cs
@@ -1,5 +1,4 @@
using LibGit;
-using LibGit.Extensions;
namespace LibGitTest;
@@ -7,11 +6,15 @@ public class Test3
{
public static async Task Run()
{
- var repo = new GitRepo(new FileRepoSource(@"/home/root@Rory/tmpgit/fosscord-server.git"));
+ Console.WriteLine("Test3 running");
+ var repo = new GitRepo(new FileRepoSource(@"/home/Rory/git/spacebar/server-master/.git"));
var packs = repo.GetPacks().GetAsyncEnumerator();
+ int count = 0;
while(await packs.MoveNextAsync())
{
- Console.WriteLine(packs.Current.ToJson());
+ count += packs.Current.ObjectCount;
+ // Console.WriteLine(packs.Current.ToJson());
}
+ Console.WriteLine($"Read {count} objects from pack files.");
}
}
\ No newline at end of file
|