示例#1
0
        public void testShouldBeRecursive_ALL()
        {
            TreeFilter a = TreeFilter.ALL;
            TreeFilter n = NotTreeFilter.create(a);

            Assert.AreEqual(a.shouldBeRecursive(), n.shouldBeRecursive());
        }
示例#2
0
        public void testShouldBeRecursive_PathFilter()
        {
            TreeFilter a = PathFilter.create("a/b");

            Assert.IsTrue(a.shouldBeRecursive());
            TreeFilter n = NotTreeFilter.create(a);

            Assert.IsTrue(n.shouldBeRecursive());
        }
示例#3
0
 public RewriteTreeFilter(RevWalk walker, TreeFilter t)
 {
     _pathFilter = new TreeWalk.TreeWalk(walker.Repository);
     _pathFilter.setFilter(t);
     _pathFilter.Recursive = t.shouldBeRecursive();
 }
示例#4
0
 public override bool shouldBeRecursive()
 {
     return(a.shouldBeRecursive());
 }