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.
This commit is contained in:
Joey Hess 2012-02-08 15:35:18 -04:00
parent 57a747d081
commit ef013506cb
4 changed files with 37 additions and 16 deletions

View file

@ -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