From 8e5f1f5154d93e60422407a5387d8b9967fc5952 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sat, 2 Mar 2024 14:54:34 +0100 Subject: jgvariant-tool: Add 'ostree summary add-static-delta' command. Change-Id: I3b318269c4c85b581d6639fe5ec6a14bf2604ad4 --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index bef2a2a..8254404 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,9 @@ be used to manipulate [GVariant][]-formatted files from the command line. Its primary purpose is to enable the scripting of [OSTree][] repository management tasks. -Usage example (dumping the contents of an [OSTree][] summary file): +### Usage examples + +#### Dumping the contents of an [OSTree][] summary file $ jgvariant ostree summary read ./jgvariant-ostree/src/test/resources/ostree/summary @@ -83,6 +85,17 @@ Output: } } +#### Adding a static delta to an [OSTree][] summary file + +Static delta 3... (in hex), between commits 1... and 2...: + + $ jgvariant ostree summary add-static-delta ./jgvariant-ostree/src/test/resources/ostree/summary 3333333333333333333333333333333333333333333333333333333333333333 2222222222222222222222222222222222222222222222222222222222222222 1111111111111111111111111111111111111111111111111111111111111111 + +Static delta 3... (in hex), between the empty commit and 2...: + + $ jgvariant ostree summary add-static-delta ./jgvariant-ostree/src/test/resources/ostree/summary 4444444444444444444444444444444444444444444444444444444444444444 2222222222222222222222222222222222222222222222222222222222222222 + +### Building the tool You can build the tool either as a shaded JAR or as a native executable. -- cgit v1.2.3