* Notmuch dev workflow: applying patches to local trees
@ 2016-11-07 23:16 Matt Armstrong
2016-11-08 9:15 ` Jani Nikula
0 siblings, 1 reply; 3+ messages in thread
From: Matt Armstrong @ 2016-11-07 23:16 UTC (permalink / raw)
To: notmuch
I'm not experienced with managing patches via email on this list,
especially when it comes to applying patches sent out for review and
testing. Is there a documented best practice?
Ideally, I'd like a "dwim" command that does something reasonable, such
as take messages from the current thread and apply the patch series to a
new/pristine git branch in my local repo.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Notmuch dev workflow: applying patches to local trees
2016-11-07 23:16 Notmuch dev workflow: applying patches to local trees Matt Armstrong
@ 2016-11-08 9:15 ` Jani Nikula
2016-11-08 19:19 ` Matt Armstrong
0 siblings, 1 reply; 3+ messages in thread
From: Jani Nikula @ 2016-11-08 9:15 UTC (permalink / raw)
To: Matt Armstrong; +Cc: Notmuch Mail
On Tue, Nov 8, 2016 at 1:16 AM, Matt Armstrong <marmstrong@google.com> wrote:
> I'm not experienced with managing patches via email on this list,
> especially when it comes to applying patches sent out for review and
> testing. Is there a documented best practice?
Not sure about best practice, but this works for me:
M-x cd RET /path/to/repo RET
Apply a single patch in show mode:
| git am RET
Apply all expanded patch messages in a thread in show mode:
C-u | git am RET
You do have to setup the branch yourself in advance.
> Ideally, I'd like a "dwim" command that does something reasonable, such
> as take messages from the current thread and apply the patch series to a
> new/pristine git branch in my local repo.
You can also write your own shell script that does the right things
when you pipe patch(es) to it.
BR,
Jani.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Notmuch dev workflow: applying patches to local trees
2016-11-08 9:15 ` Jani Nikula
@ 2016-11-08 19:19 ` Matt Armstrong
0 siblings, 0 replies; 3+ messages in thread
From: Matt Armstrong @ 2016-11-08 19:19 UTC (permalink / raw)
To: Jani Nikula; +Cc: Notmuch Mail
Jani Nikula <jani@nikula.org> writes:
> On Tue, Nov 8, 2016 at 1:16 AM, Matt Armstrong <marmstrong@google.com> wrote:
>> I'm not experienced with managing patches via email on this list,
>> especially when it comes to applying patches sent out for review and
>> testing. Is there a documented best practice?
>
> Not sure about best practice, but this works for me:
>
> M-x cd RET /path/to/repo RET
>
> Apply a single patch in show mode:
> | git am RET
>
> Apply all expanded patch messages in a thread in show mode:
> C-u | git am RET
Ah, notmuch-show-pipe-message is what I was missing. Thanks Jani.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-11-08 19:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-07 23:16 Notmuch dev workflow: applying patches to local trees Matt Armstrong
2016-11-08 9:15 ` Jani Nikula
2016-11-08 19:19 ` Matt Armstrong
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).