git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

Previous: Jeff King
Message 8 of 8 in “git-forest 20080402”
  1. git-forest 20080402Jan Engelhardt, Apr 2, 2008
  2. 1/1 Import git-forestJan Engelhardt, Apr 2, 2008
  3. Junio C HamanoApr 2, 2008
  4. Jan EngelhardtApr 3, 2008
  5. Junio C HamanoApr 3, 2008
  6. Jan EngelhardtApr 3, 2008
  7. Jeff KingApr 3, 2008
  8. Jeff KingApr 3, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.