.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "notmuch-extract-patch 1" .TH notmuch-extract-patch 1 "Debian Project" "perl v5.38.2" "User Commands" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME notmuch\-extract\-patch \- extract a git patch series from notmuch .SH SYNOPSIS .IX Header "SYNOPSIS" \&\fBnotmuch-extract-patch\fR [\fR\f(BImbox\-extract\-patch\fR\fI\|(1) options\fR] [\fI\-\-\fR] \fIQUERY\fR .SH DESCRIPTION .IX Header "DESCRIPTION" \&\fBnotmuch-extract-patch\fR is a wrapper around \fBmbox\-extract\-patch\fR\|(1) to extract a series of git patches from your notmuch database. It is designed to extract patches that were originally sent using \&\fBgit\-send\-email\fR\|(1). It skips cover letters and replies/reviews in its output. .SH EXAMPLE .IX Header "EXAMPLE" .Vb 2 \& % git checkout \-b test\-feature \& % notmuch\-extract\-patch thread:000000000000265f | git am .Ve .SH LIMITATIONS .IX Header "LIMITATIONS" We inherit limitations of \fBmbox\-extract\-patch\fR\|(1). .PP \&\fBnotmuch-extract-patch\fR can select patches to extract based on the reroll count (see \-v in \fBmbox\-extract\-patch\fR\|(1)), but otherwise typical usage assumes that there is only one patch series in a thread. .PP If this assumption is violated, you would need to construct a notmuch query that includes only the patches you want to extract, which somewhat defeats the purpose of having this script. .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBnotmuch\fR\|(1), \fBgit\-send\-email\fR\|(1), \fBmbox\-extract\-patch\fR\|(1) .PP Emacs functions 'notmuch\-extract\-thread\-patches' and \&'notmuch\-extract\-message\-patches', provided by mailscripts.el .PP The piem project: .SH AUTHOR .IX Header "AUTHOR" Sean Whitton .PP Rewrite, with additional features, of a script by Aurelien Aptel.