diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-02-02 14:42:13 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-02-02 14:42:13 -0400 |
commit | 81457e02ddf833df56112a8afaf25f57ecd07076 (patch) | |
tree | e6e79fa65773e8c12ecc0112087c4b8b7c17274b /Annex/FileMatcher.hs | |
parent | 361c08cac70ca03d43e729d93daccdde1e1141b4 (diff) |
add "nothing" to preferred content DSL
Same as "not anything"; will be particularly useful in annex.largefiles
gitattributes.
Diffstat (limited to 'Annex/FileMatcher.hs')
-rw-r--r-- | Annex/FileMatcher.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Annex/FileMatcher.hs b/Annex/FileMatcher.hs index f1936bce9..a8e431acf 100644 --- a/Annex/FileMatcher.hs +++ b/Annex/FileMatcher.hs @@ -74,6 +74,7 @@ parseToken matchstandard matchgroupwanted checkpresent checkpreferreddir getgrou | t == "inpreferreddir" = use checkpreferreddir | t == "unused" = Right $ Operation limitUnused | t == "anything" = Right $ Operation limitAnything + | t == "nothing" = Right $ Operation limitNothing | otherwise = maybe (Left $ "near " ++ show t) use $ M.lookup k $ M.fromList [ ("include", limitInclude) |