aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2024-03-02 14:54:34 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2024-03-02 14:54:34 +0100
commit8e5f1f5154d93e60422407a5387d8b9967fc5952 (patch)
treebbe30a1ab628d5aca1cf30de1106d1f3907c243f /README.md
parent6146428ef31e21f13201874ddc135bbf49ae77aa (diff)
jgvariant-tool: Add 'ostree summary add-static-delta' command.
Change-Id: I3b318269c4c85b581d6639fe5ec6a14bf2604ad4
Diffstat (limited to 'README.md')
-rw-r--r--README.md15
1 files changed, 14 insertions, 1 deletions
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 <code>3...</code> (in hex), between commits <code>1...</code> and <code>2...</code>:
+
+ $ jgvariant ostree summary add-static-delta ./jgvariant-ostree/src/test/resources/ostree/summary 3333333333333333333333333333333333333333333333333333333333333333 2222222222222222222222222222222222222222222222222222222222222222 1111111111111111111111111111111111111111111111111111111111111111
+
+Static delta <code>3...</code> (in hex), between the empty commit and <code>2...</code>:
+
+ $ 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.