support exclude file in --fast-list mode

This commit is contained in:
Iakov Davydov
2017-11-09 10:28:36 +01:00
committed by Nick Craig-Wood
parent 557dd8f031
commit 538246f6c3
5 changed files with 83 additions and 23 deletions

View File

@ -22,8 +22,8 @@ func TestFilterAndSortIncludeAll(t *testing.T) {
includeObject := func(o Object) bool {
return o != oB
}
includeDirectory := func(remote string) bool {
return remote != "c"
includeDirectory := func(remote string) (bool, error) {
return remote != "c", nil
}
// no filter
newEntries, err := filterAndSortDir(entries, true, "", includeObject, includeDirectory)