DOKK / manpages / debian 12 / mailscripts / maildir-import-patch.1.en
maildir-import-patch(1) User Commands maildir-import-patch(1)

maildir-import-patch - import a git patch series into a maildir

maildir-import-patch MAILDIR [git-format-patch(1) args]

maildir-import-patch generates a patch series using git-format-patch(1), and then imports the series into a maildir as an e-mail thread, one message per patch.

This is useful for providing inline feedback on a branch by e-mail, when the submitter did not use git-send-email(1).

Suppose that Bob uses git-request-pull(1) to ask you to review and merge his branch 'feature'. You add Bob's repository as a remote called 'bob', check out the bob/feature branch locally, look at the commits and run some tests. Now you'd like to provide inline feedback on Bob's changes, indicating which parts you think are ready to merge and which parts need more work. So you type

    % maildir-import-patch ~/Maildir/patches master..bob/feature

Over in your MUA, you can then reply to each e-mail in the new thread generated by maildir-import-patch, providing line-by-line feedback on Bob's work.

Short identifier for the project to be prepended to the subject lines of generated patches, like this: "[PATCH shortname imported]". If unset, defaults to the name of the root directory of the repository.

Ignored if any --subject-prefix option is present in the arguments to be passed on to git-format-patch(1).

notmuch-import-patch(1), git-format-patch(1), git-send-email(1)

notmuch-import-patch was written by Sean Whitton <spwhitton@spwhitton.name>.

Debian Project perl v5.36.0