pruning: add 'Negate' option to KeepRegex and expose it in config

This commit is contained in:
Christian Schwarz
2018-11-16 11:32:24 +01:00
parent 2db3977408
commit 5e1ea21f85
7 changed files with 82 additions and 15 deletions
+1 -1
View File
@@ -179,7 +179,7 @@ func TestPruner_Prune(t *testing.T) {
},
}
keepRules := []pruning.KeepRule{pruning.MustKeepRegex("^keep")}
keepRules := []pruning.KeepRule{pruning.MustKeepRegex("^keep", false)}
p := Pruner{
args: args{