Re: [ANNOUNCE] Git User's Survey 2008
- From
Jeff King <peff@peff.net>
- Date
- Sep 5, 2008, 14:45 UTC
- Message-ID
- <20080905144543.GA25022@coredump.intra.peff.net>
- In-Reply-To
- <e29894ca0809050646g2f198890le2312d065696d1dd@mail.gmail.com>
On Fri, Sep 05, 2008 at 04:46:02PM +0300, Marc-André Lureau wrote:
Show 6 quoted lines
> I cannot find yet a good workflow with either mutt, gmail or evolution > over imap. > > If somebody could explain how they handle the git send-mail patches > they recieve, I would be thankful. How do you create .mbox files? What > is your workflow when you deal with mails?
When I receive patches via mutt, I usually apply them with this:
macro index,pager A '<pipe-message>git<space>am<enter>'
which will apply in your current directory. For my git folder, I use a hook to always apply to my git repo:
folder-hook git macro index,pager A '<pipe-message>cd<space>$HOME/compile/git<space>&&<space>git<space>am<enter>'
If there are several patches in a series, I may pull them into an mbox and apply separately:
[in mutt] T pattern [or tag message individually, or Esc-T to tag thread] ;C ~/name-of-patch-topic
[in another terminal] cd /path/to/repo git am ~/name-of-patch-topic
To send one or two patches, I create an mbox and then use mutt to send:
git format-patch -s --stdout "$@" >.mbox mutt -f .mbox rm -f .mbox
and in my muttrc:
macro index,pager b ":set edit_headers=yes<enter><resend-message>:set edit_headers=no<enter>"
Hope that helps,
-Peff