Пример #1
0
        async Task TestGetCommitTree()
        {
            var db = getDataContext();

            IRefRepository    rfrepo = new RefRepository(db);
            ICommitRepository cmrepo = new CommitRepository(db);

            var rf = await rfrepo.GetRef("HEAD");

            Debug.Assert(rf != null);

            var cmTree = await cmrepo.GetCommitTree(rf.CommitID, depth : 10);

            // TODO: gather up another 10-deep commit tree from the last partial commit?
            RecursivePrint(cmTree.Item1, cmTree.Item2);
        }