nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] mh and git patches

2012-11-29 12:04:54
ken wrote:
anyone have favorite tips/tricks for using git-format-patch and mh? 
any simple automation that combines with comp or, i suppose, send?

You could always try building a draft file with mhbuild directives.
Maybe something along the lines of:

#text/plain [patch] |git format-patch --stdout

is there a ways to get git-format-patch to generate a useful
mh-compatible draft file directly?

It looks like .... you need to remove the first "From " line, and
the Date header.  Once you do that, you should be able to send that
directly.  Assuming git format-patch doesn't change it's format, you
could do that with something like "sed -e 1d -e 3d".  Obviously you'd need
a To: header in there, but format-patch can do that for you.  Also you
can use git-format-patch to add any arbitrary header you want.

having done that, how can i send the series of drafts all at once?

I guess create a bunch of files and loop over them, invoking send
on each one?  Or you could combine a bunch of patches with --inline.

or -- perhaps i should skip mh and embrace git-send-email?  but then
i'd lose the copy in my outbox folder, etc.

Up to you; I feel confident that with some tinkering the tools are
there to make it work with native nmh.

any feedback will be tested in short order:  i have a short series of
patches ready for this list (eliminating some MAXARGS usage) that i'll
experiment with -- you all are far more forgiving than the lkml crowd. :-)

You know .... may I make a modest suggestion?  Since you're confortable
with git you COULD simply skip all of this and commit to the tree directly.
If you're uncertain about a proposed changed you could send it to the list
to get feedback, but to me one of the values of revision control is that
it's easy to revert a change if it breaks something.  If you need help
getting going on savannah, let me know (I see you already have an account
there that has commit privs to the nmh tree).

and thanks for all the suggestions, including this one.

yes, i realize that's an option.  thanks for prodding me -- it turns
out there was an issue with my ssh keys that was keeping my commits
from working, which i've just sorted out.

i kind of like sending patches to the list, to get a few more eyeballs
before they're committed and forgotten about.  but now that i've
sorted out my commit problem, i'm happy to do that for patches i'm
unsure of, and then also do my own commits.  i certainly don't want to
add to your (or anyone else's!) overhead needlessly.

paul


--Ken

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

=---------------------
 paul fox, pgf(_at_)foxharp(_dot_)boston(_dot_)ma(_dot_)us (arlington, ma, 
where it's 36.9 degrees)

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>