add "nothing" to preferred content DSL

Same as "not anything"; will be particularly useful in annex.largefiles
gitattributes.
This commit is contained in:
Joey Hess 2016-02-02 14:42:13 -04:00
parent 06cf5efae7
commit e8fc2ff27c
Failed to extract signature
4 changed files with 7 additions and 0 deletions

View file

@ -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)