All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremiah Mahler <jmmahler@gmail.com>
To: Caleb Thompson <caleb@calebthompson.io>
Cc: git@vger.kernel.org
Subject: Re: [PATCH v4 1/4] commit test: Use test_config instead of git-config
Date: Thu, 12 Jun 2014 11:46:37 -0700	[thread overview]
Message-ID: <20140612184637.GA16641@hudson.localdomain> (raw)
In-Reply-To: <20140612182341.GA42013@sirius.local>

Caleb,

On Thu, Jun 12, 2014 at 01:23:41PM -0500, Caleb Thompson wrote:
> Jeremiah,
> 
> On Thu, Jun 12, 2014 at 11:04:59AM -0700, Jeremiah Mahler wrote:
> >
...
> >
> > How are you preparing your patches.  'git format-patch' with a 'git
> > send-email'?
> 
> I'm so glad you asked, because I've just been muddling through this.
> 
> I've been generating the cover page variously with request-pull or diff
> --stat, then running a command like this, with --cc arguments added from
> a list I've been keeping of people who respond to the threads:
> 
>     git send-email --compose --to=git@vger.kernel.org --thread \
>         [--cc ...] --no-chain-reply origin/master...
> 
> Then I manually edit the subjects to add the version to the [PATCH N/M]
> portions. I haven't been using format-patch.
> 
> It's interesting that only the first patch isn't applying. I'd love to
> hear a better way.
> 
> Caleb

It sounds like you are doing too much work.

After I make a series of commits I run format-patch.  This example has 2
patches (-2).  I like --thread, although it seems to work fine without
it.  And --reroll-count will automatically do your N/M numbering for
you.  It also generates a cover letter which you can then edit by hand.
All the patches will be named v3-* in this case.

  git format-patch --reroll-count=3 --cover --thread -2

Then I can send the whole patch series using send-email.

  git send-email --to=caleb --cc=git --cc=junio v3-*

Felipe Contreras has a good writeup [1] on how to setup aliases with Mutt so
you don't have to type the full email every time.

[1]: http://felipec.wordpress.com/2009/10/25/git-send-email-tricks/

I recently setup Mutt with Offlineimap [2] and Msmtp.  This is an
awesome setup too.  Not patch related, but it makes the email part
easier.

[2]: https://wiki.archlinux.org/index.php/OfflineIMAP

-- 
Jeremiah Mahler
jmmahler@gmail.com
http://github.com/jmahler

  reply	other threads:[~2014-06-12 18:46 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-11 18:24 [PATCH v4 0/4] commit: support commit.verbose and --no-verbose caleb
2014-06-11 18:24 ` [PATCH v4 1/4] commit test: Use test_config instead of git-config caleb
2014-06-12  8:41   ` Jeremiah Mahler
2014-06-12 13:51     ` Caleb Thompson
2014-06-12 18:04       ` Jeremiah Mahler
2014-06-12 18:08         ` Jeremiah Mahler
2014-06-12 18:23           ` Caleb Thompson
2014-06-12 18:46             ` Jeremiah Mahler [this message]
2014-06-12 19:23               ` Caleb Thompson
2014-06-11 18:24 ` [PATCH v4 2/4] commit test: Use write_script caleb
2014-06-11 18:24 ` [PATCH v4 3/4] commit test: test_set_editor in each test caleb
2014-06-11 18:24 ` [PATCH v4 4/4] commit: support commit.verbose and --no-verbose caleb
2014-06-11 20:41   ` René Scharfe
2014-06-11 21:26     ` Caleb Thompson
2014-06-12 14:36       ` Caleb Thompson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140612184637.GA16641@hudson.localdomain \
    --to=jmmahler@gmail.com \
    --cc=caleb@calebthompson.io \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.