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

Re: [PATCH] diff --check: use colour

From
Jeff King <peff@peff.net>
Date
Jan 26, 2007, 17:19 UTC
Message-ID
<20070126171929.GA23324@coredump.intra.peff.net>
In-Reply-To
<17850.10014.251824.979660@lisa.zopyra.com>
On Fri, Jan 26, 2007 at 10:06:54AM -0600, Bill Lear wrote:
> git format-patch -s HEAD^
> [...]
> which looks to be formatted as a mail message:
Right.
The format is:
  - subject line is the first line of your commit message
  - subsequent body lines are the rest of your commit message, until you
    hit the ---
  - below that is the patch; everything in the patch section that is not
    an actual diff hunk is free-form (e.g., the diffstat).
> Do I optionally edit this file, putting my comments before the
> "Signed-off-by" line, and then just send this off to the list with my
> mail command, i.e.:

Comments before the signed-off-by line will be part of the commit message; so if you have comments to put there, you probably would have made them when your were committing. If you have comments to send with the email ("cover letter"), place them after the --- but before the diffstat.

> % mail git@vger.kernel.org < 0001-Document-check-option-to-git-diff.patch
> 
> ?

I'm not an expert on 'mail' but I'm not sure if it handles headers correctly (i.e., it expects body text, _not_ the full rfc822 message). You can use git-send-email, but I find its interface a little clunky. You can use git-imap-send to place the message in an IMAP mailbox, which you can then presumably grab as a 'draft' using your regular mail client. Or you can use a mail client which understands mbox (most unix ones do), open the file as an mbox, and then resume it as a draft.

Or finally, you can simply edit in the headers you want, remove the initial 'From ' line, and pipe it to sendmail. :)

What's easiest for you depends on what your mail setup is like (I use mutt to open the mbox, then "resend" it with editing).

-Peff
Previous: Bill LearNext: Jakub Narebski
Message 16 of 26 in “diff --check: use colour”
  1. diff --check: use colourJohannes Schindelin, Jan 24, 2007
  2. Junio C HamanoJan 24, 2007
  3. Johannes SchindelinJan 25, 2007
  4. Junio C HamanoJan 25, 2007
  5. Bill LearJan 25, 2007
  6. Johannes SchindelinJan 25, 2007
  7. Bill LearJan 26, 2007
  8. Jeff KingJan 26, 2007
  9. Andreas EricssonJan 26, 2007
  10. Andy ParkinsJan 26, 2007
  11. Bill LearJan 26, 2007
  12. Bill LearJan 26, 2007
  13. J. Bruce FieldsJan 26, 2007
  14. Bill LearJan 26, 2007
  15. Bill LearJan 26, 2007
  16. Jeff KingJan 26, 2007
  17. Jakub NarebskiJan 26, 2007
  18. Andy ParkinsJan 26, 2007
  19. Jakub NarebskiJan 26, 2007
  20. Junio C HamanoJan 26, 2007
  21. Johannes SchindelinJan 26, 2007
  22. Junio C HamanoFeb 18, 2007
  23. Johannes SchindelinFeb 18, 2007
  24. Junio C HamanoFeb 18, 2007
  25. Johannes SchindelinFeb 18, 2007
  26. diff --check: use colourJohannes Schindelin, Feb 18, 2007

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.