mbox-extract-patch(1)

πŸ“¦
version 31 Β· 3 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 with git-send-email(1) include starting a new thread when posting a revised series. the --in-reply-to option to git-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