lib/repo: Add commit version metadata to summary metadata

The commit metadata `version` key is well established but getting it for
a remote commit is cumbersome since the commit object needs to be
fetched and loaded. Including it in the summary additional metadata
allows a much more convenient view of what each of the remote refs
represents.
This commit is contained in:
Dan Nicholson committed 2022-02-04 14:28:11 -07:00
1 parent a588295d3a
commit 6fbf759279
6 files changed
+16 -1

No files matched your search

+1
View File
@@ -56,6 +56,7 @@ assert_file_has_content_literal summary.txt "* main"
assert_file_has_content_literal summary.txt "* other"
assert_file_has_content_literal summary.txt "ostree.summary.last-modified"
assert_file_has_content_literal summary.txt "Timestamp (ostree.commit.timestamp): "
assert_file_has_content_literal summary.txt "Version (ostree.commit.version): 3.2"
echo "ok view summary"
# Check the summary can be viewed raw too.