add a warning about --json not being self describing
authorJoey Hess <joeyh@joeyh.name>
Thu, 29 Jun 2023 19:38:37 +0000 (15:38 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 29 Jun 2023 19:38:37 +0000 (15:38 -0400)
It was a mistake for mirror to support --json, but that happened long
ago and it doesn't seem worth removing. I doubt anyone will use it.

doc/git-annex-mirror.mdwn

index 3dfb9aa938aa18fd2a1294a2f1f90d5f35a6e1ef..36453744b46210780ffb4bcbb0eb8dd2283002fd 100644 (file)
@@ -73,6 +73,9 @@ contents. Use [[git-annex-sync]](1) for that.
   Enable JSON output. This is intended to be parsed by programs that use
   git-annex. Each line of output is a JSON object.
 
+  Note that unlike all other commands that support `--json`, this command
+  outputs different types of json objects in different circumstances.
+
 * `--json-progress`
 
   Include progress objects in JSON output.