Thread (18 messages) 18 messages, 12 authors, 2016-06-15

Re: [ANNOUNCE] Git User's Survey 2008

From: Jeff King <hidden>
Date: 2016-06-15 22:45:19

On Fri, Sep 05, 2008 at 04:46:02PM +0300, Marc-André Lureau wrote:
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help