bin/commit: Add --add-metadata that accepts g_variant_print() format
authorColin Walters <walters@verbum.org>
Mon, 11 Dec 2017 22:43:57 +0000 (17:43 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 12 Dec 2017 19:31:16 +0000 (19:31 +0000)
commitac092895b10be506eada983a15c8d128158b7ad7
treef17b3d60b12fbd06d66ee9455dbcab0f2dc826fe
parentf81e3c6f03f6636f1e4e4d1f13a79983820a9d29
bin/commit: Add --add-metadata that accepts g_variant_print() format

Mostly adding this for use in test cases; it allows us to add e.g.
integers, and we need to deal with byteswapping those.

Someone mind also find it useful to add fully structured metadata, although most
of those users should be using a real language and not shell script.

Closes: #1372
Approved by: jlebon
src/ostree/ot-builtin-commit.c
tests/basic-test.sh