maildir-import-patch(1)
β¨ maildir-import-patch(1) β¨
okay bestie, welcome to maildir-import-patch, a User Command, and no this is not a drill, it's literally the glow-up your code review game has been waiting for π
πΈ NAME πΈ
maildir-import-patch β import a git patch series into a maildir π¦
β¨ SYNOPSIS β¨
maildir-import-patch MAILDIR [git-format-patch(1) args]
π DESCRIPTION π
So here's the tea, bestie: maildir-import-patch generates a patch series using git-format-patch(1), and then imports that series into a maildir as an e-mail thread β one message per patch, periodt. π
It's giving extremely useful when you wanna provide inline feedback on a branch by e-mail and the submitter did not use git-send-email(1). Like, they skipped the whole email pipeline and now it's your problem? No worries, this tool has you covered. π«Ά
π EXAMPLE π
Picture this: Bob uses git-request-pull(1) to ask you to review and merge his branch 'feature'. Iconic of him. So you:
- add Bob's repository as a remote called 'bob' β¨
- check out the
bob/featurebranch locally π - look at the commits and run some tests π₯
And now you're lowkey obsessed with giving inline feedback on Bob's changes β pointing out which parts are ready to merge and which parts need more work. So you type:
% maildir-import-patch ~/Maildir/patches master..bob/feature
Then over in your MUA, you can reply to each e-mail in the new thread that maildir-import-patch just generated, providing line-by-line feedback on Bob's work. Main character energy, honestly. π
π GIT CONFIGURATION KEYS π
mailscripts.project-shortnameβ a short identifier for the project, and it gets prepended to the subject lines of generated patches, like this:"[PATCH shortname imported]". If it's unset, it defaults to the name of the root directory of the repository. π
Heads up though: this key is ignored if any --subject-prefix option is present in the arguments that are gonna be passed on to git-format-patch(1). iykyk π
π SEE ALSO π
notmuch-import-patch(1), git-format-patch(1), git-send-email(1)
go read those too bestie, they're the supporting cast π
π AUTHOR π
notmuch-import-patch was written by Sean Whitton <spwhitton@spwhitton.name>. π
(yes bestie, the page says notmuch-import-patch right there in the AUTHOR section β i am simply reporting the facts, i don't make the rules πΈ)
and that's a wrap, angel π« this was perl v5.40.1, brought to you by the Debian Project, and it's your girl maildir-import-patch(1) signing off β go forth and review those patches, you absolute icon π¦β¨π
π¦ 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