From 717c005698c45896baf952a3b6d3a2ee625d34dd Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Sat, 17 Feb 2024 13:36:23 -0500 Subject: [PATCH 1/2] Fix up example description of podman-diff.1.md.in Signed-off-by: Daniel J Walsh --- docs/source/markdown/podman-diff.1.md.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/source/markdown/podman-diff.1.md.in b/docs/source/markdown/podman-diff.1.md.in index 70de724bce..2b7121dfc2 100644 --- a/docs/source/markdown/podman-diff.1.md.in +++ b/docs/source/markdown/podman-diff.1.md.in @@ -27,11 +27,13 @@ Alter the output into a different format. The only valid format for **podman di ## EXAMPLE +Show container-modified files versus containers image: ``` $ podman diff container1 A /myscript.sh ``` +Show container-modified files versus containers image in JSON format: ``` $ podman diff --format json myimage { @@ -46,6 +48,7 @@ $ podman diff --format json myimage } ``` +Show difference between specified container and image: ``` $ podman diff container1 image1 A /test From 5b5343b38e2c203beb051198d23f6ca074ec0ae7 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Mon, 19 Feb 2024 15:53:03 -0500 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Tom Sweeney Signed-off-by: Daniel J Walsh --- docs/source/markdown/podman-diff.1.md.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/source/markdown/podman-diff.1.md.in b/docs/source/markdown/podman-diff.1.md.in index 2b7121dfc2..694d488a86 100644 --- a/docs/source/markdown/podman-diff.1.md.in +++ b/docs/source/markdown/podman-diff.1.md.in @@ -27,13 +27,13 @@ Alter the output into a different format. The only valid format for **podman di ## EXAMPLE -Show container-modified files versus containers image: +Show container-modified files versus the container's image: ``` $ podman diff container1 A /myscript.sh ``` -Show container-modified files versus containers image in JSON format: +Show container-modified files versus the container's image in JSON format: ``` $ podman diff --format json myimage { @@ -48,7 +48,7 @@ $ podman diff --format json myimage } ``` -Show difference between specified container and image: +Show the difference between the specified container and the image: ``` $ podman diff container1 image1 A /test