ostree-diff(1)

ostree-diff1

Compare a directory against a revision

Usage

ostree diff [OPTIONS ...] REV_OR_DIR REV_OR_DIR

Overview

Compare a directory or revision against another directory or revision. If REV_OR_DIR starts with `/` or `./`, it is interpreted as a directory, otherwise a revision. Shows files and directories modified, added, and deleted. If there is a file in the second REV_OR_DIR not in the first, it will show with an "A" for "added". If a file in the first REV_OR_DIR is not in the second, it shows "D" for "deleted". "M" for "modified" will also show.

Options

--stats

Print various statistics.

--fs-diff

Print filesystem diff.

--owner-uid

Use file ownership user id for local files.

--owner-gid

Use file ownership group id for local files.

Examples

$ ostree diff my-branch^ my-branch

        A   /testdirectory
        M   /helloworld.txt

$ ostree diff my-branch my-branch^

        D   /testdirectory
        M   /helloworld.txt

Releases

6 releases since Debian 9 (Stretch); the text changed 5 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13
  6. Arch

--owner-gid since Debian 10 (Buster); --owner-uid since Debian 10 (Buster).

From ostree 2026.4-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.