log: Support --json and --json-error-messages

Also in passing the --all display was fixed up to not quote keys like filenames.

Note that the check added to compareChanges was needed to avoid logging when
nothing changed.

Sponsored-By: the NIH-funded NICEMAN (ReproNim TR&D3) project
This commit is contained in:
Joey Hess 2023-05-04 12:36:31 -04:00
parent f56f6140fa
commit 46c7c30140
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 62 additions and 29 deletions

View file

@ -6,13 +6,13 @@ While looking for various spots where `core.quotepath=true` is now treated by gi
These commands have been updated to support --json:
* git-annex-unannex
* git-annex-rmurl
* git-annex-log
Provisional list of commands that don't support --json and maybe should:
(Feel free to reorder things to the top)
* git-annex-log
* git-annex-rmurl
* git-annex-addunused
* git-annex-adjust
* git-annex-assistant