Re: [announce+patch] git-forest 20080402

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx

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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux