Re: [announce+patch] git-forest 20080402
- From
Jeff King <peff@peff.net>
- Date
- Apr 3, 2008, 10:14 UTC
- Message-ID
- <20080403101418.GC6673@coredump.intra.peff.net>
- In-Reply-To
- <1207169895-25949-1-git-send-email-jengelh@computergmbh.de>
On Wed, Apr 02, 2008 at 10:58:14PM +0200, Jan Engelhardt wrote:
> N.B.: This was a ridiculous command to get it right... > can't this be done easier? > `git-format-patch -C -M --stat=72 --summary -p --thread -n HEAD^..HEAD && > git-send-email --suppress-from --no-chain --compose --to git@xxx 00*`
Most of the time you don't need -C -M (unless you are actually renaming stuff). If you always want it, try:
git config --global diff.renames copies
format-patch already defaults to "--stat --summary -p" if you give it no format options. The default stat is 80, I believe; for format-patch it should probably be bumped to 72 anyway. format-patch will also default to ..HEAD if just given HEAD^.
So you should be able to do:
git format-patch --thread -n HEAD^
For your send-email invocation, doing:
git config --global sendemail.suppressfrom true git config --global sendemail.chainreplyto false # the --global makes the others user-wide; this # one should just be specific to your git repo git config sendemail.to git@vger.kernel.org
should allow:
git sendemail --compose 00*
though if you are just sending a single patch, it is common to put the cover letter material (if it is short) after the '---' but before the diffstat.
HTH, -Peff