OSTREE DIFF(1) ostree diff OSTREE DIFF(1)

.SH "NAME" ostree-diff - Compare a directory against a revision

.SH "SYNOPSIS"

.HP 288u

**ostree diff** \[OPTIONS...] {REV\_OR\_DIR} {REV\_OR\_DIR}

.SH "DESCRIPTION"

.PP 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.

.SH "OPTIONS"

.PP **--stats**

Print various statistics.

.RE

.PP **--fs-diff**

Print filesystem diff.

.RE

.PP **--owner-uid**

Use file ownership user id for local files.

.RE

.PP **--owner-gid**

Use file ownership group id for local files.

.RE

.SH "EXAMPLE"

.PP **$ ostree diff my-branch^ my-branch**

```


        A   /testdirectory


        M   /helloworld.txt
```

**$ ostree diff my-branch my-branch^**

```


        D   /testdirectory


        M   /helloworld.txt
```

OSTree

---

Document: ostree-diff(1) from ostree 2026.5-r0 (Chainguard OS)
Source: https://github.com/ostreedev/ostree
