STG-SQUASH(1)
β¨ STG-SQUASH(1) β¨
okay so this is the StGit Manual page for stg-squash, and bestie, it's giving "let's smoosh some patches together" energy and honestly? iconic π
πΈ NAME πΈ
stg-squash β squash two or more patches into one π«Ά
π¦ SYNOPSIS π¦
stg squash [OPTIONS] <patch>...
π DESCRIPTION π
Squash two or more patches, creating one patch with their combined changes. fr fr, that's the whole vibe π«
The squash process, at a high level (ngl this is the tea β):
- Pop all the given patches, plus any other patches on top of them. πΎ
- Push the given patches in the order they were given on the command line. This establishes a tree containing the combined changes from the given patches. π³
- Replace given patches with a new, squashed patch. β¨
- Allow the user to interactively edit the commit message of the new, squashed patch. βοΈ
- Push other patches that were popped in step (1), if any. π«‘
β οΈ Conflicts can occur whenever a patch is pushed β that's steps (2) and (5), just so we're clear π If conflicts occur, the squash command will halt such that the conflicts may be resolved manually. So like, no cap, you might have to go in there and fix things yourself π
π OPTIONS π
-n <name>,--name=<name>β Use<name>for the squashed patch. name it, bestie, you earned it π-e,--editβ Invoke editor for patch description π§-d,--diffβ Show diff when editing patch description. context is everything π-m <message>,--message=<message>β Use message instead of invoking the editor. skip the editor, main character move π-f <path>,--file=<path>β Use the contents of file instead of invoking the editor. Use"-"to read from stdin. π--no-verifyβ Disable commit-msg hook. living dangerously, love that for you π-s[=<value>],--signoff[=<value>]β Add "Signed-off-by" message trailer.
The value is optional and defaults to the committer name and email. This option may be provided multiple times. β
--ack[=<value>]β Add "Acked-by" message trailer.
The value is optional and defaults to the committerβs name and email. This option may be provided multiple times. π«Ά
--review[=<value>]β Add "Reviewed-by" message trailer.
The value is optional and defaults to the committerβs name and email. This option may be provided multiple times. π₯
--author=<name-and-email>β Set the author"name <email>"βοΈ--authname=<name>β Set the author name πΈ--authemail=<email>β Set the author email π--authdate=<date>β Set the date the patch was authored.
Use "now" to use the current time and date. β°
--committer-date-is-author-dateβ Instead of using the current time as the committer date, use the author date of the commit as the committer date. time travel but make it git π°οΈ--save-template=<file>β Instead of running the command, just write the patch description to FILE, and exit. (If FILE is"-", write to stdout.)
When driving StGit from another program, it may be useful to first call a command with --save-template, then let the user edit the message, and then call the same command with --file. π€β‘οΈβοΈβ‘οΈβ
π STGIT π
Part of the StGit suite β see stg(1) π
π¦ and that's the whole page bestie, go squash some patches, you've got this, iykyk πβ¨
laterz!! this masterpiece was served to you by StGit 2.7.0, dated 10/17/2026 π periodt.
π¦ where this page comes from
- opensuse-leap 16.0: stgit 2.7.0-bp160.1.1 Β· GPL-2.0-only
- opensuse-leap 16.0: stgit 2.7.0-bp160.1.1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms