add reregisterurl command
authorJoey Hess <joeyh@joeyh.name>
Tue, 5 Mar 2024 19:04:35 +0000 (15:04 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 5 Mar 2024 19:06:14 +0000 (15:06 -0400)
commit016d1bee88dfac29325a88b75765cb269321905d
treee481aca827df4fbbe6fe83c6cba50bea2cd6889d
parent1bf02029f9af8040dc88b9c59c9ce109880accaf
add reregisterurl command

What this can currently be used for is only to change an url from being
used by a special remote to being used by the web remote.

This could have been a --move-from option to registerurl. But, that would
have complicated its option and --batch processing, and also would have
complicated unregisterurl, which is implemented on top of
Command.Registerurl. So, a separate command was actually less complicated
to implement.

The generic description of the command is because I want to make this
command a catch-all for other url updating kind of things, if there are
ever any more. Also because it was hard to come up with a good name for the
specific action. I considered `git-annex moveurl`, but that seems to
indicate data is perhaps actually being moved, and seems to sit at the same
level as addurl and rmurl, and this command is at the plumbing
level of registerurl and unregisterurl.

Sponsored-by: Dartmouth College's DANDI project
CHANGELOG
CmdLine/GitAnnex.hs
Command/ReregisterUrl.hs [new file with mode: 0644]
doc/forum/how_to___34__move__34___URL_between_remotes__63__/comment_6_260c238435f8f5e53511de7e574dd53f._comment [new file with mode: 0644]
doc/git-annex-registerurl.mdwn
doc/git-annex-reregisterurl.mdwn [new file with mode: 0644]
doc/git-annex-unregisterurl.mdwn
doc/git-annex.mdwn
git-annex.cabal