* S3: Allow setting publicurl=yes without public=yes, to support
buckets that are configured with a Bucket Policy that allows public
access.
+ * dropunused: Support --jobs
-- Joey Hess <id@joeyh.name> Mon, 26 Jun 2023 13:10:40 -0400
import qualified Utility.RawFilePath as R
cmd :: Command
-cmd = withAnnexOptions [jsonOptions] $
+cmd = withAnnexOptions [jobsOption, jsonOptions] $
command "dropunused" SectionMaintenance
"drop unused file content"
(paramRepeating paramNumRange) (seek <$$> optParser)
<*> optional (Command.Drop.parseDropFromOption)
seek :: DropUnusedOptions -> CommandSeek
-seek o = do
+seek o = startConcurrency commandStages $ do
numcopies <- getNumCopies
mincopies <- getMinCopies
from <- maybe (pure Nothing) (Just <$$> getParsed) (dropFrom o)
the last repository that is storing their content. Data loss can
result from using this option.
+* `--jobs=N` `-JN`
+
+ Runs multiple drop jobs in parallel. This is particularly useful
+ when git-annex has to contact remotes to check if it can drop content.
+ For example: `-J4`
+
+ Setting this to "cpus" will run one job per CPU core.
+
* `--json`
Enable JSON output. This is intended to be parsed by programs that use