]> dgit.raspbian.org Git - git-annex.git/commit
migrate: New --remove-size option
authorJoey Hess <joeyh@joeyh.name>
Fri, 12 Nov 2021 16:59:30 +0000 (12:59 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 12 Nov 2021 17:28:28 +0000 (13:28 -0400)
commit51b73ea1fccd83172d739e04e18c152b594bd54a
treec06d623150ab0316a6510d6a3fc3940076388673
parentf3326b8b5ae4d1caa5c6e3e192c58c6e064c425a
migrate: New --remove-size option

While intended for converting URL keys added by addurl --fast to be
as if added by addurl --relaxed, it can also be used to remove size
from other types of keys. Although that is not likely to be useful
for checksummed keys, I suppose it could be used for WORM or other
non-checksum keys.

Specifying the --remove-size option does not prevent other migrations
from taking effect if there's a key upgrade to perform, or if the
backend has changed. So --backend=URL needs to be used to prevent
migrating an URL key to the default backend.

Note that it's not possible to use git-annex migrate to convert from a
non-URL key to an URL key, as URL keys cannot be generated, except by
addurl. So while this can get the same effect as --relaxed would have
when addurl --fast was used, when --fast was not used, it won't work, or
if --backend=URL is not used will remove the size but not prevent
checksum verification, which is not useful. Due to this complexity, I
decided not to mention it in the git-annex addurl man page.

Sponsored-by: Jochen Bartl on Patreon
CHANGELOG
Command/Migrate.hs
doc/forum/Dropping_checksum_from_URL_key/comment_1_ce952a9db35d398a9e67adcd7f927d59._comment [new file with mode: 0644]
doc/forum/Dropping_checksum_from_URL_key/comment_2_bb458296d464c2025f96502338f34000._comment [new file with mode: 0644]
doc/git-annex-migrate.mdwn
doc/git-annex-rekey.mdwn