migrate: support adding size back to URL keys

migrate: Support adding size to URL keys that were added with --relaxed, by
running eg: git-annex migrate --backend=URL foo

Since url keys cannot be generated, that used to fail. Make it notice that
the backend is not changed, and just get the size of the content.

Sponsored-by: Brock Spratlen on Patreon
This commit is contained in:
Joey Hess 2023-12-08 16:22:14 -04:00
parent cb9bb2027c
commit 86dbe9a825
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
5 changed files with 59 additions and 24 deletions

View file

@ -82,6 +82,10 @@ format.
git-annex migrate --remove-size --backend=URL somefile
To add back the size to an URL key, use this:
git-annex migrate --backend=URL somefile
* `--json`
Enable JSON output. This is intended to be parsed by programs that use