git-annex/Remote
Joey Hess 9286769d2c
let Remote.availability return Unavilable
This is groundwork for making special remotes like borg be skipped by
sync when on an offline drive.

Added AVAILABILITY UNAVAILABLE reponse and the UNAVAILABLERESPONSE extension
to the external special remote protocol. The extension is needed because
old git-annex, if it sees that response, will display a warning
message. (It does continue as if the remote is globally available, which
is acceptable, and the warning is only displayed at initremote due to
remote.name.annex-availability caching, but still it seemed best to make
this a protocol extension.)

The remote.name.annex-availability git config is no longer used any
more, and is documented as such. It was only used by external special
remotes to cache the availability, to avoid needing to start the
external process every time. Now that availability is queried as an
Annex action, the external is only started by sync (and the assistant),
when they actually check availability.

Sponsored-by: Nicholas Golder-Manning on Patreon
2023-08-16 14:31:31 -04:00
..
Directory improve createDirectoryUnder to allow alternate top directories 2022-08-12 12:52:37 -04:00
External let Remote.availability return Unavilable 2023-08-16 14:31:31 -04:00
Helper fix empty tree import when directory does not exist 2023-08-15 12:57:41 -04:00
List auto-init autoenable=yes 2020-05-27 12:40:35 -04:00
Rsync add newtypes for QuickCheck to avoid LANG=C issues 2020-11-09 20:21:18 -04:00
WebDAV Apply codespell -w throughout 2023-03-17 15:14:58 -04:00
Adb.hs let Remote.availability return Unavilable 2023-08-16 14:31:31 -04:00
BitTorrent.hs let Remote.availability return Unavilable 2023-08-16 14:31:31 -04:00
Borg.hs let Remote.availability return Unavilable 2023-08-16 14:31:31 -04:00
Bup.hs let Remote.availability return Unavilable 2023-08-16 14:31:31 -04:00
Ddar.hs let Remote.availability return Unavilable 2023-08-16 14:31:31 -04:00
Directory.hs let Remote.availability return Unavilable 2023-08-16 14:31:31 -04:00
External.hs let Remote.availability return Unavilable 2023-08-16 14:31:31 -04:00
GCrypt.hs let Remote.availability return Unavilable 2023-08-16 14:31:31 -04:00
Git.hs let Remote.availability return Unavilable 2023-08-16 14:31:31 -04:00
GitLFS.hs let Remote.availability return Unavilable 2023-08-16 14:31:31 -04:00
Glacier.hs let Remote.availability return Unavilable 2023-08-16 14:31:31 -04:00
Hook.hs let Remote.availability return Unavilable 2023-08-16 14:31:31 -04:00
HttpAlso.hs let Remote.availability return Unavilable 2023-08-16 14:31:31 -04:00
List.hs start borg special remote 2020-12-18 16:03:51 -04:00
P2P.hs let Remote.availability return Unavilable 2023-08-16 14:31:31 -04:00
Rsync.hs let Remote.availability return Unavilable 2023-08-16 14:31:31 -04:00
S3.hs let Remote.availability return Unavilable 2023-08-16 14:31:31 -04:00
Tahoe.hs let Remote.availability return Unavilable 2023-08-16 14:31:31 -04:00
Web.hs let Remote.availability return Unavilable 2023-08-16 14:31:31 -04:00
WebDAV.hs let Remote.availability return Unavilable 2023-08-16 14:31:31 -04:00