add --in limit

This commit is contained in:
Joey Hess 2011-09-18 20:14:18 -04:00
parent dd463a3100
commit 1fc3ee2423
3 changed files with 31 additions and 3 deletions

View file

@ -108,8 +108,10 @@ options = commonOptions ++
"override trust setting to untrusted"
, Option ['c'] ["config"] (ReqArg setgitconfig "NAME=VALUE")
"override git configuration setting"
, Option ['x'] ["exclude"] (ReqArg (Limit.exclude) paramGlob)
, Option ['x'] ["exclude"] (ReqArg (Limit.addExclude) paramGlob)
"skip files matching the glob pattern"
, Option ['i'] ["in"] (ReqArg (Limit.addIn) paramRemote)
"skip files not present in a remote"
] ++ matcherOptions
where
setto v = Annex.changeState $ \s -> s { Annex.toremote = Just v }