summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2018-07-26 15:55:16 +0800
committerSean Whitton <spwhitton@spwhitton.name>2018-07-26 15:56:05 +0800
commitf6afcdcae55b2eef68a14f9d04859aeb0435e13e (patch)
tree4a0c739938270f6e8098c37a8c69e0063583cbf7
parent27cd090f22f502c927ba2ae0734e71c258ee0a78 (diff)
downloadmailscripts-f6afcdcae55b2eef68a14f9d04859aeb0435e13e.tar.gz
add notmuch-extract-patch(1)
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
-rw-r--r--Makefile2
-rw-r--r--debian/mailscripts.manpages1
-rw-r--r--notmuch-extract-patch.1.pod37
3 files changed, 39 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9491e13..a8d0233 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-MANPAGES=mdmv.1 mbox2maildir.1 notmuch-slurp-debbug.1
+MANPAGES=mdmv.1 mbox2maildir.1 notmuch-slurp-debbug.1 notmuch-extract-patch.1
all: $(MANPAGES)
diff --git a/debian/mailscripts.manpages b/debian/mailscripts.manpages
index 3bf8027..1d5eacd 100644
--- a/debian/mailscripts.manpages
+++ b/debian/mailscripts.manpages
@@ -1,3 +1,4 @@
mbox2maildir.1
mdmv.1
notmuch-slurp-debbug.1
+notmuch-extract-patch.1
diff --git a/notmuch-extract-patch.1.pod b/notmuch-extract-patch.1.pod
new file mode 100644
index 0000000..ee0c6f6
--- /dev/null
+++ b/notmuch-extract-patch.1.pod
@@ -0,0 +1,37 @@
+=head1 NAME
+
+notmuch-extract-patch - extract a git patch series from notmuch
+
+=head1 SYNOPSIS
+
+B<notmuch-extract-patch> I<QUERY>
+
+=head1 DESCRIPTION
+
+B<notmuch-extract-patch> extracts a series of git patches from your
+notmuch database. It is designed to extract patches that were
+originally sent using git-send-email(1). It skips cover letters and
+replies/reviews.
+
+=head1 OPTIONS
+
+None.
+
+=head1 EXAMPLE
+
+=over 4
+
+ % git checkout -b test-feature
+ % notmuch-extract-patch thread:000000000000265f | git am
+
+=back
+
+=head1 SEE ALSO
+
+notmuch(1), git-send-email(1)
+
+=head1 AUTHOR
+
+B<notmuch-extract-patch> was written by Aurelien Aptel. This manpage
+was written by Sean Whitton <spwhitton@spwhitton.name> for the Debian
+system, but may be used by others.