summaryrefslogtreecommitdiff
path: root/GitAnnex.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-09-18 20:23:08 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-09-18 20:23:08 -0400
commit9da23dff78d80158ba01a271ac2a32830fd9bccc (patch)
tree007f7fd05eb844d9e8fd04a172adbd6436e31544 /GitAnnex.hs
parent1fc3ee24232059ae05ab18ed10bf151f86847ac1 (diff)
--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.)
Diffstat (limited to 'GitAnnex.hs')
-rw-r--r--GitAnnex.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/GitAnnex.hs b/GitAnnex.hs
index bcb30ff41..a284daad5 100644
--- a/GitAnnex.hs
+++ b/GitAnnex.hs
@@ -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 }