summaryrefslogtreecommitdiff
path: root/Limit.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-06-16 17:03:34 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-06-16 17:03:34 -0400
commit88167b18de65eab818324de2e59a8879cce02a81 (patch)
tree79bf41bb1bb8b671d7c30be79724be73cd6592aa /Limit.hs
parent712deee42b122f0ec07866e6bd7770343cee971c (diff)
Added new "anything" preferred content expression, which matches all versions of all files.
Diffstat (limited to 'Limit.hs')
-rw-r--r--Limit.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Limit.hs b/Limit.hs
index c412637bb..da9b6a155 100644
--- a/Limit.hs
+++ b/Limit.hs
@@ -193,6 +193,10 @@ limitUnused :: MatchFiles Annex
limitUnused _ (MatchingFile _) = return False
limitUnused _ (MatchingKey k) = S.member k <$> unusedKeys
+{- Limit that matches any version of any file. -}
+limitAnything :: MatchFiles Annex
+limitAnything _ _ = return True
+
{- Adds a limit to skip files not believed to be present in all
- repositories in the specified group. -}
addInAllGroup :: String -> Annex ()