reinject: Support --json and --json-error-messages

Also fix support for operating on multiple pairs of files and keys.

Moved notAnnexed to inside starting, so error message will get into the json.

Cannot include the key in the starting as it's not known yet, so instead
add it to the json later.

Sponsored-By: the NIH-funded NICEMAN (ReproNim TR&D3) project
This commit is contained in:
Joey Hess 2023-05-08 15:43:37 -04:00
parent 91b9915b09
commit 3d8f93dc0a
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 47 additions and 35 deletions

View file

@ -34,6 +34,7 @@ These commands have been updated to support --json:
* git-annex-unused
* git-annex-init
* git-annex-reinit
* git-annex-reinject
Provisional list of commands that don't support --json and maybe should:
@ -43,7 +44,6 @@ Provisional list of commands that don't support --json and maybe should:
* git-annex-enableremote
* git-annex-initremote
* git-annex-merge
* git-annex-reinject
* git-annex-renameremote
* git-annex-sync
* git-annex-upgrade