OSTREE-DIFF(1)
π OSTREE-DIFF β bestie edition π¦
okay so real talk, ostree-diff is the page for comparing stuff in ostree and honestly it's giving detective energy π β you point it at two things and it tells you exactly what changed. It lives in the ostree diff manual, and I'm gonna walk you through every last detail, no cap π
β¨ NAME β¨
ostree-diff β compare a directory against a revision π
πΈ SYNOPSIS πΈ
ostree diff [OPTIONS...] {REV_OR_DIR} {REV_OR_DIR}
π¦ DESCRIPTION π¦
So what it does is: it compares a directory or a revision against another directory or revision. Two things go in, the differences come out π
Here's the rule for how it reads each REV_OR_DIR argument β if REV_OR_DIR starts with / or ./, it gets interpreted as a directory. Otherwise? It's a revision. Simple as that β¨
Then it shows you the files and directories that were modified, added, and deleted. Let's break down the letters, because iykyk:
- If there's a file in the second
REV_OR_DIRthat isn't in the first, it shows up with an"A"for "added" π - If a file in the first
REV_OR_DIRisn't in the second, it shows"D"for "deleted" π - And
"M"for "modified" will also show, obviously π
π₯ OPTIONS π₯
--statsβ prints various statistics π--fs-diffβ prints the filesystem diff ποΈ--owner-uidβ use the file ownership user id for local files π«Ά--owner-gidβ use the file ownership group id for local files π«Ά
π EXAMPLE π
okay so watch this, first one β comparing my-branch^ against my-branch:
$ ostree diff my-branch^ my-branch
A /testdirectory
M /helloworld.txt
see that? A for the added directory, M for the modified file. slay π
and then flipping it around, my-branch against my-branch^:
$ ostree diff my-branch my-branch^
D /testdirectory
M /helloworld.txt
same vibes, opposite direction β now it's a D because from this angle the directory got deleted. iconic behavior honestly π
ngl the whole thing is just: two inputs, three letters, zero drama π
and that's the whole page bestie!! this was OSTree, like, the manual for OSTREE DIFF(1), and it's coming at you from the ostree source/version with its date β mwah, love that for us ππ«Άβ¨
π¦ where this page comes from
- arch rolling: ostree 2026.6-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms