summaryrefslogtreecommitdiff
path: root/doc/git-annex-add.mdwn
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-01-19 17:46:46 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-01-19 17:48:42 -0400
commit90b1891e1e2be29ae122a2613a462959f3c32611 (patch)
tree306af03e34b7d219d178a3f0d16975b8de5ca58a /doc/git-annex-add.mdwn
parent8d1ac05755f970f0ec9553c9a7680a5512726c28 (diff)
add --batch
Diffstat (limited to 'doc/git-annex-add.mdwn')
-rw-r--r--doc/git-annex-add.mdwn14
1 files changed, 12 insertions, 2 deletions
diff --git a/doc/git-annex-add.mdwn b/doc/git-annex-add.mdwn
index 382ea1e6f..5f1ab33b0 100644
--- a/doc/git-annex-add.mdwn
+++ b/doc/git-annex-add.mdwn
@@ -8,8 +8,9 @@ git annex add `[path ...]`
# DESCRIPTION
-Adds files in the path to the annex. If no path is specified, adds
-files from the current directory and below.
+Adds the specified files to the annex. If a directory is specified,
+acts on all files inside the directory and its subdirectories.
+If no path is specified, adds files from the current directory and below.
Files that are already checked into git and are unmodified, or that
git has been configured to ignore will be silently skipped.
@@ -59,6 +60,15 @@ annexed content, and other symlinks.
Enable JSON output. This is intended to be parsed by programs that use
git-annex. Each line of output is a JSON object.
+* `--batch`
+
+ Enables batch mode, in which a file to add is read in a line from stdin,
+ the file is added, and repeat.
+
+ Note that if a file is skipped (due to not existing, being gitignored,
+ already being in git etc), an empty line will be output instead of the
+ normal output produced when adding a file.
+
# SEE ALSO
[[git-annex]](1)