STG-PREV(1)

πŸ’… STG-PREV(1)

okay so real quick β€” this is a page straight out of the StGit Manual, and it's lowkey one of the shortest ones ever, so grab a lil snack and let's go πŸ“

✨ NAME ✨

stg-prev β€” it prints the name of the previous patch, that's literally it, that's the whole job 🫢

✨ SYNOPSIS ✨

stg prev [OPTIONS]

🌸 DESCRIPTION 🌸

So stg prev prints out the name of the previous patch. Periodt.

Now, bestie, what even is the "previous patch"? πŸ’­ It's the applied patch that comes right before the current, topmost patch β€” like the one standing directly behind the main character in the lineup πŸ‘‘

ngl there's a catch: if there aren't enough patches applied, you're gonna get an error message instead. The vibe check fails, no name for you 😭

πŸŽ€ OPTIONS πŸŽ€

  • -b <branch>, --branch=<branch> β€” use <branch> instead of the current branch, iykyk 🌈

πŸ¦‹ STGIT πŸ¦‹

This lil icon is part of the StGit suite β€” go see stg(1) for the full picture ✨


and that's the whole page fr fr πŸ’– this beauty shipped with StGit 2.7.0, dated 10/17/2026 β€” screenshot it, frame it, it's iconic πŸ‘‘πŸ’…

πŸ“¦ where this page comes from