add, import: Fix a reversion in 7.20191009 that broke handling of --largerthan and --smallerthan
This commit was sponsored by Jochen Bartl on Patreon.
This commit is contained in:
parent
b390a4012c
commit
7036d0a4c1
7 changed files with 34 additions and 17 deletions
8
Limit.hs
8
Limit.hs
|
@ -441,11 +441,11 @@ limitSecureHash = MatchFiles
|
|||
}
|
||||
|
||||
{- Adds a limit to skip files that are too large or too small -}
|
||||
addLargerThan :: String -> Annex ()
|
||||
addLargerThan = addLimit . limitSize LimitAnnexFiles (>)
|
||||
addLargerThan :: LimitBy -> String -> Annex ()
|
||||
addLargerThan lb = addLimit . limitSize lb (>)
|
||||
|
||||
addSmallerThan :: String -> Annex ()
|
||||
addSmallerThan = addLimit . limitSize LimitAnnexFiles (<)
|
||||
addSmallerThan :: LimitBy -> String -> Annex ()
|
||||
addSmallerThan lb = addLimit . limitSize lb (<)
|
||||
|
||||
limitSize :: LimitBy -> (Maybe Integer -> Maybe Integer -> Bool) -> MkLimit Annex
|
||||
limitSize lb vs s = case readSize dataUnits s of
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue