tests/TestTreeFilteringScripts.cs
/// <summary>
/// Keeps only non binary files less than 10 bytes
/// </summary>
Keeps only non binary files less than 10 bytes
Keeps only non binary files less than 10 bytes
[Fact]
        public void KeepOnlyNonBinaryFilesLessThan10Bytes()
        {
            var test = InitializeTest();
            Assert.Equal(0, Program.Main("--keep", "* => entry.Discard = entry.IsBinary || entry.Size > 10; ",
                "--repo-dir", test.Path,
                "--branch", NewBranch,
                @"HEAD"));
            CheckKeepOnlyNonBinaryFilesLessThan10Bytes(test);
            test.Dispose();
        }
[ Fact ] public void KeepOnlyNonBinaryFilesLessThan10Bytes ( ) { var test = InitializeTest ( ) ; Assert . Equal ( 0 , Program . Main ( " " , " " , " " , test . Path , " " , NewBranch , @"HEAD" ) ) ; CheckKeepOnlyNonBinaryFilesLessThan10Bytes ( test ) ; test . Dispose ( ) ; }
Keeps only non binary files less than 10 bytes
Keeps only non binary files less than 10 bytes
// Cleanup the test only if we succeed