notmuch-extract-patch(1)
π notmuch-extract-patch β the manual page, bestie edition π
okay so this is the notmuch-extract-patch(1) man page, straight from User Commands, and we're gonna go through the whole thing together, no skimming, no skipping, i promise π«Ά
β¨ NAME β¨
notmuch-extract-patch β literally just extracts a git patch series out of notmuch. that's the whole job. iconic.
πΈ SYNOPSIS πΈ
notmuch-extract-patch [mbox-extract-patch(1) options] [--] QUERY
so you give it a QUERY, you can pass any mbox-extract-patch(1) options through, and if you need to, you slap a -- in there before your query. simple. clean. slay.
π¦ DESCRIPTION π¦
okay so notmuch-extract-patch is a wrapper around mbox-extract-patch(1), and what it does is pull a whole series of git patches out of your notmuch database. it's built for patches that were originally sent with git-send-email(1), iykyk.
and here's the best part: it skips cover letters and it skips replies/reviews in its output. so you don't have to scroll past a thousand "thanks, looks good to me!" emails. the way it just filters all that out... obsessed. π
π EXAMPLE π
this is the whole vibe:
% git checkout -b test-feature
% notmuch-extract-patch thread:000000000000265f | git am
branch, extract, git am, done. main character energy fr fr β¨
π LIMITATIONS π
ngl, there are some. let's be real about them.
- we inherit the limitations of
mbox-extract-patch(1). that's just how it is bestie. notmuch-extract-patchcan pick which patches to extract based on the reroll count (peep the-voption inmbox-extract-patch(1)for that one), but other than that, typical usage just assumes there's only one patch series in a thread. one. singular. that's the assumption.- and if that assumption gets violated?? π you'd have to hand-construct a notmuch query that includes only the patches you actually want to extract β which kind of defeats the whole purpose of having this script in the first place. tragic, honestly.
π SEE ALSO π
go check these out:
notmuch(1)git-send-email(1)mbox-extract-patch(1)- the Emacs functions
notmuch-extract-thread-patchesandnotmuch-extract-message-patches, which are provided bymailscripts.elπ - the piem project: <https://docs.kyleam.com/piem/> π§
π AUTHOR π
Sean Whitton <spwhitton@spwhitton.name>
it's a rewrite, with additional features, of a script by Aurelien Aptel. giving credit where credit is due, always π
and that's the whole page, bestie π this was perl v5.40.1 from the Debian Project, bringing you notmuch-extract-patch(1) β go extract some patches, you've got this π
β¨
π¦ where this page comes from
- debian trixie: mailscripts 30-2
- ubuntu questing: mailscripts 30-2
- ubuntu resolute: mailscripts 30-2build1
- ubuntu stonking: mailscripts 31-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms