refactor
This commit is contained in:
parent
16045d15fe
commit
049e80e865
4 changed files with 22 additions and 5 deletions
5
Limit.hs
5
Limit.hs
|
@ -27,6 +27,7 @@ import Types.TrustLevel
|
|||
import Types.Key
|
||||
import Types.Group
|
||||
import Types.FileMatcher
|
||||
import Types.Limit
|
||||
import Logs.Group
|
||||
import Utility.HumanTime
|
||||
import Utility.DataUnits
|
||||
|
@ -41,10 +42,6 @@ import Types.FileMatcher
|
|||
#endif
|
||||
#endif
|
||||
|
||||
type MatchFiles = AssumeNotPresent -> FileInfo -> Annex Bool
|
||||
type MkLimit = String -> Either String MatchFiles
|
||||
type AssumeNotPresent = S.Set UUID
|
||||
|
||||
{- Checks if there are user-specified limits. -}
|
||||
limited :: Annex Bool
|
||||
limited = (not . Utility.Matcher.isEmpty) <$> getMatcher'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue