using LibGit; namespace LibGitTest; public class Test3 { public static async Task Run() { 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()) { count += packs.Current.ObjectCount; // Console.WriteLine(packs.Current.ToJson()); } Console.WriteLine($"Read {count} objects from pack files."); } }