improve matcher data type to allow matching Keys, instead of just files (no behavior changes)
This commit is contained in:
parent
a135bbd5a2
commit
8ce515ffe4
8 changed files with 49 additions and 39 deletions
|
@ -35,11 +35,11 @@ checkFileMatcher' matcher file notpresent def
|
|||
| isEmpty matcher = return def
|
||||
| otherwise = do
|
||||
matchfile <- getTopFilePath <$> inRepo (toTopFilePath file)
|
||||
let fi = FileInfo
|
||||
let mi = MatchingFile $ FileInfo
|
||||
{ matchFile = matchfile
|
||||
, relFile = file
|
||||
}
|
||||
matchMrun matcher $ \a -> a notpresent fi
|
||||
matchMrun matcher $ \a -> a notpresent mi
|
||||
|
||||
matchAll :: FileMatcher
|
||||
matchAll = generate []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue