move, copy: Support --batch.

This commit is contained in:
Joey Hess 2017-08-15 12:39:10 -04:00
parent 8526cd7c92
commit 2eb6309d3e
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
6 changed files with 49 additions and 10 deletions

View file

@ -75,6 +75,19 @@ Copies the content of files from or to another remote.
The [[git-annex-matching-options]](1)
can be used to specify files to copy.
* `--batch`
Enables batch mode, in which lines containing names of files to copy
are read from stdin.
As each specified file is processed, the usual progress output is
displayed. If a file's content does not need to be copied or it
is not an annexed file, a blank line is output in response instead.
Since the usual output while copying a file is verbose and not
machine-parseable, you may want to use --json in combination with
--batch.
* `--json`
Enable JSON output. This is intended to be parsed by programs that use