started migrate --update
This is most of the way there, but not quite working. The layout of migrate.tree/ needs to be changed to follow this approach. git log will list all the files in tree order, so the new layout needs to alternate old and new keys. Can that be done? git may not document tree order, or may not preserve it here. Alternatively, change to using git log --format=raw and extract the tree header from that, then use git diff --raw $tree:migrate.tree/old $tree:migrate.tree/new That will be a little more expensive, but only when there are lots of migrations. Sponsored-by: Joshua Antonishen on Patreon
This commit is contained in:
parent
d06aee7ce0
commit
f1ce15036f
9 changed files with 172 additions and 38 deletions
|
@ -6,6 +6,8 @@ git-annex migrate - switch data to different backend
|
|||
|
||||
git annex migrate `[path ...]`
|
||||
|
||||
git annex migrate --update
|
||||
|
||||
# DESCRIPTION
|
||||
|
||||
Changes the specified annexed files to use the default key-value backend
|
||||
|
@ -19,11 +21,17 @@ Normally, nothing will be done to files already using the new backend.
|
|||
However, if a backend changes the information it uses to construct a key,
|
||||
this can also be used to migrate files to use the new key format.
|
||||
|
||||
When you have multiple repositories that each contain a copy of a file,
|
||||
it's best to run migrate in all of them.
|
||||
|
||||
# OPTIONS
|
||||
|
||||
* `--update`
|
||||
|
||||
This updates the local repository for migrations that were performed
|
||||
elsewhere.
|
||||
|
||||
Note that older versions of git-annex did not record migrations in a
|
||||
way that this can use. Migrations performed with those older versions
|
||||
had to be manually run in each clone of the repository.
|
||||
|
||||
* `--backend`
|
||||
|
||||
Specify the new key-value backend to use for migrated data.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue