--copies=N can be used to make git-annex only operate on files with the specified number of copies.

(And --not --copies=N for the inverse.)
This commit is contained in:
Joey Hess 2011-09-18 20:23:08 -04:00
parent 1fc3ee2423
commit 9da23dff78
4 changed files with 24 additions and 0 deletions

View file

@ -112,6 +112,8 @@ options = commonOptions ++
"skip files matching the glob pattern"
, Option ['i'] ["in"] (ReqArg (Limit.addIn) paramRemote)
"skip files not present in a remote"
, Option ['C'] ["copies"] (ReqArg (Limit.addCopies) paramNumber)
"skip files with fewer copies"
] ++ matcherOptions
where
setto v = Annex.changeState $ \s -> s { Annex.toremote = Just v }