From 3810cdf4464b16484fe1672765b01d9734bed318 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sat, 15 Feb 2020 15:03:23 -0700 Subject: notmuch-extract-patch: rewrite & split out mbox-extract-patch Signed-off-by: Sean Whitton --- mbox-extract-patch.1.pod | 70 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 mbox-extract-patch.1.pod (limited to 'mbox-extract-patch.1.pod') diff --git a/mbox-extract-patch.1.pod b/mbox-extract-patch.1.pod new file mode 100644 index 0000000..943c322 --- /dev/null +++ b/mbox-extract-patch.1.pod @@ -0,0 +1,70 @@ +=head1 NAME + +mbox-extract-patch - extract a git patch series from an mbox + +=head1 SYNOPSIS + +B [I] + +=head1 DESCRIPTION + +B 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. + +=head1 OPTIONS + +=over 4 + +=item B<-v>|B<--reroll-count=>I + +Try to extract the Ith version of a patch series, where these +patches are identified by subject prefixes like "[PATCH vI 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 I<--in-reply-to> +option to git-format-patch(1) is used mainly for posting a patch +series in reply to a bug report. + +=item B<--trailers> + +Extract and add to patches lines like + + Acked-by: A. Developer + +sent in reply to those patches. B<--trailers> is on by default, and +B<--no-trailers> can be used to disable adding the trailers. + +=item B<--cover-letter-trailers> + +Additionally add to all patches in the series any trailers sent in +reply to the cover letter of the patch series. + +=back + +=head1 EXAMPLE + +=over 4 + + % git checkout -b test-feature + % mbox-extract-patch -- cgit v1.2.3