summaryrefslogtreecommitdiff
path: root/notmuch-extract-patch/README.md
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-02-20 22:12:52 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-02-20 22:12:52 -0700
commitcc1f96c07dd0612e9ae44e41f889dd40315f0d75 (patch)
treebc960e456d1cba9a4070376d63443b1ec8b8f947 /notmuch-extract-patch/README.md
parent46cedb673ae6e63724d010d3fb6a47cc209502f5 (diff)
parentbbf1fc63fa1d88ea204a8cf272511ca85a828794 (diff)
downloadmailscripts-cc1f96c07dd0612e9ae44e41f889dd40315f0d75.tar.gz
Merge tag '0.18' into buster-bpo
release 0.18 # gpg: Signature made Sat 15 Feb 2020 03:11:16 PM MST # gpg: using RSA key 9B917007AE030E36E4FC248B695B7AE4BF066240 # gpg: issuer "spwhitton@spwhitton.name" # gpg: Good signature from "Sean Whitton <spwhitton@spwhitton.name>" [ultimate] # Primary key fingerprint: 8DC2 487E 51AB DD90 B5C4 753F 0F56 D055 3B6D 411B # Subkey fingerprint: 9B91 7007 AE03 0E36 E4FC 248B 695B 7AE4 BF06 6240
Diffstat (limited to 'notmuch-extract-patch/README.md')
-rw-r--r--notmuch-extract-patch/README.md30
1 files changed, 0 insertions, 30 deletions
diff --git a/notmuch-extract-patch/README.md b/notmuch-extract-patch/README.md
deleted file mode 100644
index ecd1ba7..0000000
--- a/notmuch-extract-patch/README.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# Usage
-
-Let's say you use notmuch as your email client and you want to try out
-one of those git patchset sent on a mailing list with all diffs
-grouped in a thread, one patch per email. ("[PATCH 1/15] do blah...").
-
-Simply exporting the thread is not enough, you need to skip any
-feedbacks or cover letters that have been posted on the thread.
-
-This is what this script does.
-
-Example usage:
-
- $ notmuch-extract-patchset thread:000000000000265f > feature.patchset
- $ git checkout -b test-feature
- $ git am feature.patchet
-
-
-You can use the following to use it directly from emacs:
-
- (defun apply-thread-patchset (repo branch)
- (interactive "Dgit repo: \nsnew branch name: ")
- (let ((tid notmuch-show-thread-id)
- (tmp "/tmp/notmuch-patchset"))
- (shell-command (format "notmuch-extract-patch %s > %s && ( cd %s && git checkout -b %s && git am %s )"
- (shell-quote-argument tid)
- (shell-quote-argument tmp)
- (shell-quote-argument (expand-file-name repo))
- (shell-quote-argument branch)
- (shell-quote-argument tmp)))))