logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mbox-extract-patch - extract a git patch series from an mbox

Author

       Sean Whitton <spwhitton@spwhitton.name>

perl v5.40.1                                     Debian Project                            mbox-extract-patch(1)

Description

mbox-extract-patch extracts a series of git patches from an mbox.  It is designed to extract patches that
       were originally sent using git-send-email(1).  It skips cover letters and replies/reviews in its output.

Example

           % git checkout -b test-feature
           % mbox-extract-patch <thread.mbox | git am

Limitations

       Detection of cover letters is currently quite simplistic.

Name

       mbox-extract-patch - extract a git patch series from an mbox

Options

-v|--reroll-count=N
           Try  to  extract  the  Nth  version  of a patch series, where these patches are identified by subject
           prefixes like "[PATCH vN 1/3]".

           If this option is not specified, and there is more than one series, default to extracting the version
           of the patch series with the highest version number we find.

           Note that this option should not usually be needed, 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.

       --trailers
           Extract and add to patches lines like

               Acked-by: A. Developer <a.dev@example.net>

           sent in reply to those patches.  --trailers is on by  default,  and  --no-trailers  can  be  used  to
           disable adding the trailers.

       --cover-letter-trailers
           Additionally  add  to all patches in the series any trailers sent in reply to the cover letter of the
           patch series.

See Also

notmuch(1), git-send-email(1), notmuch-extract-patch(1)

Synopsis

mbox-extract-patch [OPTIONS] <MBOX

See Also