Discussion:
Handling PATCH from notmuchmail
Xavier Maillard
2010-11-22 21:49:15 UTC
Permalink
Hello,

out of curiosity, how hackers on this mailing list and using notmuch
(through GNU Emacs client if at all) do handle all the patches sent here
?

I mean, what commands/keystrokes do you use in order to apply your
patches ?

Thank you very much.

/Xavier
Sebastian Spaeth
2010-11-23 14:47:26 UTC
Permalink
Post by Xavier Maillard
out of curiosity, how hackers on this mailing list and using notmuch
(through GNU Emacs client if at all) do handle all the patches sent here
cF to stash the filename and
then switch to shell and do
git am -3 ctrl-shift-v RET

Sebastian
Jameson Rollins
2010-11-23 15:44:39 UTC
Permalink
Post by Sebastian Spaeth
Post by Xavier Maillard
out of curiosity, how hackers on this mailing list and using notmuch
(through GNU Emacs client if at all) do handle all the patches sent here
cF to stash the filename and
then switch to shell and do
git am -3 ctrl-shift-v RET
notmuch show --format=mbox id:XXX | git am

works well too, as does

notmuch show --format=mbox thread:XXX | git am

for a whole series.

jamie.
Michal Sojka
2010-11-23 15:41:40 UTC
Permalink
Post by Xavier Maillard
Hello,
out of curiosity, how hackers on this mailing list and using notmuch
(through GNU Emacs client if at all) do handle all the patches sent here
?
I mean, what commands/keystrokes do you use in order to apply your
patches ?
If I see a patch that I want to try I do:

M-x cd <RET> ~/src/notmuch <RET>
| git am <RET>

Then I manually switch to *notmuch-pipe* buffer to see whether the
command failed or not. It would be nice if *notmuch-pipe* buffer is
shown automatically when the command exits with non-zero status.

-Michal
Jed Brown
2010-11-23 17:27:34 UTC
Permalink
Post by Michal Sojka
M-x cd <RET> ~/src/notmuch <RET>
| git am <RET>
An arguable refinement is

| (cd ~/src/notmuch; git am -3)<RET>
Post by Michal Sojka
Then I manually switch to *notmuch-pipe* buffer to see whether the
command failed or not. It would be nice if *notmuch-pipe* buffer is
shown automatically when the command exits with non-zero status.
Agreed.

Jed
Xavier Maillard
2010-11-23 21:06:44 UTC
Permalink
Hi,

Thank you all for your answers.
Post by Jed Brown
Post by Michal Sojka
M-x cd <RET> ~/src/notmuch <RET>
| git am <RET>
An arguable refinement is
| (cd ~/src/notmuch; git am -3)<RET>
Sounds awesome !

/Xavier

Loading...