web special remote is no longer a singleton

Allow initremote of additional special remotes with type=web, in addition
to the default web special remote.

When --sameas=web is used, these provide additional names for the web
special remote, and may also have their own additional configuration
(once there is any for the web special remote) and cost.

Sponsored-by: Dartmouth College's DANDI project
This commit is contained in:
Joey Hess 2023-01-09 15:49:20 -04:00
parent 60f7cfc96e
commit 8d06930c88
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
7 changed files with 102 additions and 13 deletions

View file

@ -13,6 +13,9 @@ If git-annex is not built using the haskell torrent library to parse
torrents, it also needs the `btshowmetainfo` program, from either
bittornado or the original BitTorrent client.
The bittorrent special remote is always enabled, without any manual setup being
needed. Its name is "bittorrent".
## notes
Currently git-annex only supports downloading content from a torrent;
@ -27,5 +30,3 @@ git-annex takes a cautious approach and when dropping a file, won't
treat this special remote as one of the required [[copies]]. It's probably
a good idea to configure git-annex to fully distrust this remote, by
running `git annex untrust bittorrent`
This feature is available only from version `5.20141219`.

View file

@ -1,11 +1,12 @@
git-annex can use the WWW as a special remote, associating an url with an
git-annex can use the web as a special remote, associating an url with an
annexed file, and downloading the file content from the web.
See [[tips/using_the_web_as_a_special_remote]] for usage examples.
## notes
The web special remote is always enabled, without any manual setup being
needed. Its name is "web".
Currently git-annex only supports downloading content from the web;
it cannot upload to it or remove content.
This special remote can only be used for downloading content,
not uploading content, or removing content from the web.
This special remote uses urls on the web as the source for content.
There are several other ways http can be used to download annexed objects,