ostree-rev-parse(1)

ostree-rev-parse1

Output the target of a rev

Usage

ostree rev-parse REV PATH

Options

--single, -S

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

Overview

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

Examples

$ ostree rev-parse my-branch

        ce19c41036cc45e49b0cecf6b157523c2105c4de1ce30101def1f759daafcc3e

Releases

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

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

--single since Debian 12 (Bookworm); -S since Debian 12 (Bookworm).

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