summaryrefslogtreecommitdiff
path: root/notmuch-extract-patch/README.md
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-02-15 15:03:23 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-02-15 15:04:18 -0700
commit3810cdf4464b16484fe1672765b01d9734bed318 (patch)
treea7c491438e0ef896e6bf596b937b3bd340cab7d9 /notmuch-extract-patch/README.md
parent10a13114833731a370b56f743bb43636a5eada8d (diff)
downloadmailscripts-3810cdf4464b16484fe1672765b01d9734bed318.tar.gz
notmuch-extract-patch: rewrite & split out mbox-extract-patch
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
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)))))