mbox-extract-patch(1)
π mbox-extract-patch β the manual, but make it cute π
okay so bestie, welcome to mbox-extract-patch(1), a User Commands girly from the Debian Project, and she is so good at what she does. let's get into it π«Ά
β¨ NAME β¨
mbox-extract-patch β extract a git patch series from an mbox π
πΈ SYNOPSIS πΈ
mbox-extract-patch [OPTIONS] <MBOX
like, that's it. that's the whole vibe. she reads from stdin, no cap. π¦
π DESCRIPTION π
so mbox-extract-patch extracts a whole series of git patches out of an mbox, and honestly? iconic behaviour. she's built specifically to pull patches that were originally sent with git-send-email(1) β that's her whole thing, that's her moment.
and the best part: she skips cover letters and skips replies/reviews in her output. no messy extras, just the patches. she's giving curated. β¨
π OPTIONS π
-v|--reroll-count=Nβ try to pull out the *N*th version of a patch series, where those patches are identified by subject prefixes like"[PATCH vN 1/3]". π
if you don't pass this option, and there's more than one series hanging around, she defaults to extracting the version of the patch series with the highest version number she can find. main character decision-making fr fr.
ngl, you should not usually need this option, because best practices when sharing patches withgit-send-email(1)include starting a new thread when posting a revised series. the--in-reply-tooption togit-format-patch(1)is used mainly for posting a patch series in reply to a bug report. so like⦠iykyk.
--trailersβ extract and add to patches lines like
Acked-by: A. Developer <a.dev@example.net>
that were sent in reply to those patches. --trailers is on by default, and --no-trailers can be used to disable adding the trailers. she's helpful like that π
--cover-letter-trailersβ additionally add to all patches in the series any trailers sent in reply to the cover letter of the patch series. yes, all of them. she said "and you're getting the cover letter ones too" π
π EXAMPLE π
% git checkout -b test-feature
% mbox-extract-patch <thread.mbox | git am
look at her go. flawless. β
π LIMITATIONS π
detection of cover letters is currently quite simplistic. she's doing her best okay π it's giving "working on it".
π SEE ALSO π
notmuch(1), git-send-email(1), notmuch-extract-patch(1)
the whole squad fr. go say hi. π¦
π AUTHOR π
Sean Whitton <spwhitton@spwhitton.name> β thank you for your service, legend π«Ά
and that's the page babes!! brought to you by perl v5.40.1 and the Debian Project π mwah, go extract some patches, you're gonna slay β¨πΈ
π¦ 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