OSTREE REV-PARSE(1) ostree rev-parse OSTREE REV-PARSE(1)

.SH "NAME" ostree-rev-parse - Output the target of a rev

.SH "SYNOPSIS"

.HP 432u

**ostree rev-parse** {REV} {PATH}

.SH "OPTIONS"

.PP **--single**, **-S**

If the repository has exactly one commit, then print it; any other case will result in an error.

.RE

.SH "DESCRIPTION"

.PP Given a REV, outputs the checksum of the latest commit of that revision.

.SH "EXAMPLE"

.PP **$ ostree rev-parse my-branch**

```


        ce19c41036cc45e49b0cecf6b157523c2105c4de1ce30101def1f759daafcc3e
```

OSTree

---

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