registerurl, unregisterurl: Added --remote option
authorJoey Hess <joeyh@joeyh.name>
Wed, 5 Apr 2023 19:46:51 +0000 (15:46 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 5 Apr 2023 19:54:41 +0000 (15:54 -0400)
commit2b940f77259b1987ab11b283954347df3ed72b92
tree470239c3d3fc030fda025a18d83aa829876ce0f8
parentc39d72ac78f1628309affb18c522ad15556a66f9
registerurl, unregisterurl: Added --remote option

This serves two purposes. --remote=web bypasses other special remotes that
claim the url, same as addurl --raw. And, specifying some other remote
allows making sure that an url is claimed by the remote you expect,
which makes then using setpresentkey not be fragile.

Sponsored-By: the NIH-funded NICEMAN (ReproNim TR&D3) project
14 files changed:
CHANGELOG
CmdLine/GitAnnex/Options.hs
Command/Drop.hs
Command/Export.hs
Command/Fsck.hs
Command/Get.hs
Command/Import.hs
Command/RegisterUrl.hs
Command/UnregisterUrl.hs
doc/bugs/registerurl_does_not_register_if_external_remote/comment_5_b9057ce47bb57b3a3dbe390672310898._comment
doc/git-annex-registerurl.mdwn
doc/git-annex-unregisterurl.mdwn
doc/todo/registerurl_--remote_REMOTE.mdwn
doc/todo/registerurl_--remote_REMOTE/comment_4_334ce2eb815d6d8489f9cb00c09b0bd7._comment [new file with mode: 0644]