unlock, lock: Support --json.

This commit is contained in:
Joey Hess 2017-10-30 14:44:11 -04:00
parent 325c40afef
commit 75ec0227f8
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
7 changed files with 27 additions and 2 deletions

View file

@ -5,3 +5,5 @@ Unlock is quite heavy in terms of I/O and thus waiting time, so we (in datalad)
2. could there be a --json mode of output (consistent with add --json etc)?
[[!meta author=yoh]]
> added --json option [[done]] --[[Joey]]

View file

@ -0,0 +1,12 @@
[[!comment format=mdwn
username="joey"
subject="""comment 2"""
date="2017-10-30T18:40:53Z"
content="""
Why was I talking about batch mode here before? --json of course makes
sense to support for unlock (and lock). Adding that now.
And, to find the files that `git annex unlock` would operate on, you
can simply use `git annex find`, because that does not list already
unlocked files, and only files with their content present can be unlocked.
""]]