tweak
This commit is contained in:
parent
a4aef6f115
commit
3b2e462018
1 changed files with 4 additions and 4 deletions
8
Limit.hs
8
Limit.hs
|
@ -43,10 +43,10 @@ getMatcher' = do
|
||||||
|
|
||||||
{- Adds something to the limit list, which is built up reversed. -}
|
{- Adds something to the limit list, which is built up reversed. -}
|
||||||
add :: Limit -> Annex ()
|
add :: Limit -> Annex ()
|
||||||
add l = Annex.changeState $ \s -> s { Annex.limit = append $ Annex.limit s }
|
add l = Annex.changeState $ \s -> s { Annex.limit = prepend $ Annex.limit s }
|
||||||
where
|
where
|
||||||
append (Left ls) = Left $ l:ls
|
prepend (Left ls) = Left $ l:ls
|
||||||
append _ = error "internal"
|
prepend _ = error "internal"
|
||||||
|
|
||||||
{- Adds a new limit. -}
|
{- Adds a new limit. -}
|
||||||
addlimit :: (FilePath -> Annex Bool) -> Annex ()
|
addlimit :: (FilePath -> Annex Bool) -> Annex ()
|
||||||
|
@ -65,7 +65,7 @@ addExclude glob = addlimit $ return . notExcluded
|
||||||
regex = '^':wildToRegex glob
|
regex = '^':wildToRegex glob
|
||||||
|
|
||||||
{- Adds a limit to skip files not believed to be present
|
{- Adds a limit to skip files not believed to be present
|
||||||
- on a specfied repository. -}
|
- in a specfied repository. -}
|
||||||
addIn :: String -> Annex ()
|
addIn :: String -> Annex ()
|
||||||
addIn name = do
|
addIn name = do
|
||||||
u <- Remote.nameToUUID name
|
u <- Remote.nameToUUID name
|
||||||
|
|
Loading…
Reference in a new issue