summaryrefslogtreecommitdiff
path: root/doc/git-annex-add.mdwn
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-04-07 15:55:34 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-04-07 15:55:45 -0400
commitad6f647124993f102b18f1390c89df3f0db5e3d5 (patch)
treefc6767048d4bfc4a39fcc8dc199162a4be75dc5f /doc/git-annex-add.mdwn
parente1e52ab130e4a67d001e0577010f8cd142860914 (diff)
git annex add -u now supported, analagous to git add -u
Unlike git add -u, git annex add -u does not update the index for files removed from the working tree. But then, "git add ." stages removals, and "git annex add ." does not, so that's an existing divergence. Seems that --update --batch would need to run git ls-files once per line of batch input, which would surely be too slow, so just throw an error for that. This commit was supported by the NSF-funded DataLad project.
Diffstat (limited to 'doc/git-annex-add.mdwn')
-rw-r--r--doc/git-annex-add.mdwn5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/git-annex-add.mdwn b/doc/git-annex-add.mdwn
index 15bb8a6a0..2ebbbac06 100644
--- a/doc/git-annex-add.mdwn
+++ b/doc/git-annex-add.mdwn
@@ -56,6 +56,11 @@ annexed content, and other symlinks.
Adds multiple files in parallel. This may be faster.
For example: `-J4`
+* `--update` `-u`
+
+ Like `git add --update`, this does not add new files, but any updates
+ to tracked files will be added to the index.
+
* `--json`
Enable JSON output. This is intended to be parsed by programs that use