core: Add standard SOURCE_TITLE metadata key
authorColin Walters <walters@verbum.org>
Thu, 19 Oct 2017 18:28:02 +0000 (14:28 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 23 Oct 2017 14:19:41 +0000 (14:19 +0000)
commit795a953a3605e7caab14ecda5d48d70276126bff
tree2ab7e44d29d407d1366eabad5df8a2bb2d36d59d
parent0e0fe859223e7c6e94717f02e8ca04197934b199
core: Add standard SOURCE_TITLE metadata key

This is a freeform string useful to track/display when a commit is "derived"
from some other format.  For example, in the rpm-ostree test we make a
`vmcheck` ref that conceptually overlays the default ref like
`fedora-atomic:fedora/26/x86_64/atomic-host`.

My current patch sets the source title to e.g.
"Dev overlay on fedora-atomic:fedora/26/x86_64/atomic-host".

Another case I'm working on now is importing OCI images to use
as host images.  For that case, the source title is
With this patch we could then set the original OCI image name + tag
as the source name, like:
"oci:cgwalters/demo-custom-fedora-atomic-host:26".

Closes: #1296
Approved by: jlebon
src/libostree/ostree-core.h
src/ostree/ot-admin-builtin-status.c
tests/admin-test.sh
tests/test-admin-deploy-uboot.sh