aboutsummaryrefslogtreecommitdiff
path: root/doc/git-annex-fsck.mdwn
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-06-26 13:40:57 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-06-26 13:40:57 -0400
commit8ac594f37dfedd0bd6f2bb1b45c8f472b31c66cd (patch)
tree8d28c9c8f08a3f131cc88ff3ce67eb193401839d /doc/git-annex-fsck.mdwn
parentc3c705fe7f5c04e8d2c065066e6f544f8dffafe1 (diff)
fsck: Support --json.
One use case is to get a list of files that fsck fails on, in order to eg, drop them from a remote. This commit was sponsored by Nick Daly on Patreon.
Diffstat (limited to 'doc/git-annex-fsck.mdwn')
-rw-r--r--doc/git-annex-fsck.mdwn5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/git-annex-fsck.mdwn b/doc/git-annex-fsck.mdwn
index 2500ba977..a320bb8a3 100644
--- a/doc/git-annex-fsck.mdwn
+++ b/doc/git-annex-fsck.mdwn
@@ -93,6 +93,11 @@ With parameters, only the specified files are checked.
Runs multiple fsck jobs in parallel. For example: `-J4`
+* `--json`
+
+ Enable JSON output. This is intended to be parsed by programs that use
+ git-annex. Each line of output is a JSON object.
+
# OPTIONS
# SEE ALSO