Thread (3 messages) flat view 3 messages, 2 authors, 2016-08-13

Re: [announce+patch] git-forest 20080402

From: Jeff King <hidden>
Date: 2016-06-15 22:44:27

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help