summaryrefslogtreecommitdiff
path: root/doc/git-annex.mdwn
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-02-08 15:35:18 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-02-08 15:35:29 -0400
commitef013506cb8c82d547160195b66572b5774db14f (patch)
tree62e23266075a8f6a0900d16427399b8d53969bc3 /doc/git-annex.mdwn
parent57a747d0819d587d8f7fb301c3c6c589c80c556f (diff)
addurl: Added a --file option
Can be used to specify what file the url is added to. This can be used to override the default filename that is used when adding an url, which is based on the url. Or, when the file already exists, the url is recorded as another location of the file.
Diffstat (limited to 'doc/git-annex.mdwn')
-rw-r--r--doc/git-annex.mdwn9
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/git-annex.mdwn b/doc/git-annex.mdwn
index 148b6336d..9232bf020 100644
--- a/doc/git-annex.mdwn
+++ b/doc/git-annex.mdwn
@@ -145,9 +145,14 @@ subdirectories).
* addurl [url ...]
- Downloads each url to a file, which is added to the annex.
+ Downloads each url to its own file, which is added to the annex.
- To avoid immediately downloading the url, specify --fast
+ To avoid immediately downloading the url, specify --fast.
+
+ To specify what file the url is added to, specify --file. This changes
+ the behavior; now all the specified urls are recorded as alternate
+ locations from which the file can be downloaded. In this mode, addurl
+ can be used both to add new files, or to add urls to existing files.
# REPOSITORY SETUP COMMANDS