followup
This commit is contained in:
parent
6d11b2ace2
commit
47707608b1
2 changed files with 21 additions and 0 deletions
|
@ -12,3 +12,5 @@ and the full pipe was
|
|||
to my surprise all i got was the retrial of the existing meta-data instead of the addition of the linked fields
|
||||
|
||||
IHO git annex should allow to store metadata in batch mode by key
|
||||
|
||||
[[!meta title="metadata --batch parses json strictly, loosen?"]]
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
[[!comment format=mdwn
|
||||
username="joey"
|
||||
subject="""comment 2"""
|
||||
date="2018-10-01T16:09:13Z"
|
||||
content="""
|
||||
It does.
|
||||
|
||||
git annex metadata --batch --json
|
||||
{"key": "SHA256E-s30--56c5f90f308696d997525622df4103a31d50ef70d22ceb457d5f87a8b72283cc", "fields":{"author":["bar"]}}
|
||||
{"command":"metadata","note":"author=bar\nauthor-lastchanged=2018-10-01@16-08-50\nlastchanged=2018-10-01@16-08-50\n","success":true,"key":"SHA256E-s30--56c5f90f308696d997525622df4103a31d50ef70d22ceb457d5f87a8b72283cc","file":null,"fields":{"author":["bar"],"lastchanged":["2018-10-01@16-08-50"],"author-lastchanged":["2018-10-01@16-08-50"]}}
|
||||
|
||||
Your input is malformed, the value of a field needs to be inside `[]` like `["bar"]` above.
|
||||
The same format as it's output.
|
||||
Since that part of your json did not parse it thinks you want to query the metadata, not set
|
||||
it.
|
||||
|
||||
Does your json library actually convert a list containing a
|
||||
single value into that value not in a list and vice-versa?
|
||||
"""]]
|
Loading…
Add table
Reference in a new issue