mirror of
https://github.com/ostreedev/ostree.git
synced 2025-02-02 13:47:38 +03:00
dump: Print the version when dumping a commit, log/show/etc.
This commit is contained in:
parent
52c0d89a8c
commit
aab6e7bdf2
@ -26,6 +26,7 @@
|
||||
|
||||
#include "ot-dump.h"
|
||||
#include "otutil.h"
|
||||
#include "ot-admin-functions.h"
|
||||
|
||||
void
|
||||
ot_dump_variant (GVariant *variant)
|
||||
@ -92,6 +93,7 @@ dump_commit (GVariant *variant,
|
||||
const gchar *body;
|
||||
guint64 timestamp;
|
||||
gs_free gchar *str = NULL;
|
||||
gs_free gchar *version = NULL;
|
||||
|
||||
/* See OSTREE_COMMIT_GVARIANT_FORMAT */
|
||||
g_variant_get (variant, "(a{sv}aya(say)&s&stayay)", NULL, NULL, NULL,
|
||||
@ -102,6 +104,11 @@ dump_commit (GVariant *variant,
|
||||
if (str)
|
||||
g_print ("Date: %s\n", str);
|
||||
|
||||
if ((version = ot_admin_checksum_version (variant)))
|
||||
{
|
||||
g_print ("Version: %s\n", version);
|
||||
}
|
||||
|
||||
g_print ("\n");
|
||||
dump_indented_lines (subject);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user