STG-DIFF(1)

✨ STG-DIFF πŸ’…

ok so bestie, welcome to stg-diff from the StGit Manual β€” this is the STG-DIFF(1) page and it's literally the "show me what changed" command 🫢


🌸 SYNOPSIS 🌸

stg diff [OPTIONS] [path]...

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the whole vibe here: stg diff shows you a diff (that's the default, no thoughts needed) or a diffstat between the current working copy or a tree-ish object, and another tree-ish object (which defaults to HEAD if you don't say anything, she's lowkey minding her own business πŸ‘‘).

you can also hand it file names to restrict the diff output β€” like, "only show me these files please and thank you" πŸŽ€

and the tree-ish object takes the format that the stg-id(1) command accepts. iykyk ✨


πŸ’– OPTIONS πŸ’–

  • -r <revspec>, --range=<revspec> β€” shows the diff between the revisions you specify 🧚 revision ranges get written as rev1[..[rev2]]. and those revisions? they can be standard Git revision specifiers or patches β€” either one slays πŸ’…
  • -s, --stat β€” shows the stat instead of the diff. sometimes you don't want the whole essay, you just want the summary, and that's valid 🌸
  • -O <option>, --diff-opt=<option> β€” passes an extra <option> through to git diff πŸ”₯ go peep the git-diff(1) man page for the deets. and yes bestie, you can specify this one multiple times β€” stack 'em up ⭐

🌈 STGIT 🌈

this is part of the StGit suite β€” check out stg(1) for the whole friend group πŸ’œ


ngl, that's the entire page β€” short, sweet, and absolutely ate πŸ“

and that's the tea fr fr πŸŽ€ this was StGit 2.7.0, dated 10/17/2026 β€” mwah, go diff something iconic bestie πŸ’…βœ¨

πŸ“¦ where this page comes from