aboutsummaryrefslogtreecommitdiff
path: root/Annex/FileMatcher.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 /Annex/FileMatcher.hs
parent712deee42b122f0ec07866e6bd7770343cee971c (diff)
Added new "anything" preferred content expression, which matches all versions of all files.
Diffstat (limited to 'Annex/FileMatcher.hs')
-rw-r--r--Annex/FileMatcher.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Annex/FileMatcher.hs b/Annex/FileMatcher.hs
index 9677e65dd..8b0db60ad 100644
--- a/Annex/FileMatcher.hs
+++ b/Annex/FileMatcher.hs
@@ -74,6 +74,7 @@ parseToken matchstandard matchgroupwanted checkpresent checkpreferreddir groupma
| t == "present" = use checkpresent
| t == "inpreferreddir" = use checkpreferreddir
| t == "unused" = Right $ Operation limitUnused
+ | t == "anything" = Right $ Operation limitAnything
| otherwise = maybe (Left $ "near " ++ show t) use $ M.lookup k $
M.fromList
[ ("include", limitInclude)