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

[PATCH 0/4] Generate cover letters with format-patch

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Feb 6, 2008, 16:43 UTC
Message-ID
<alpine.LNX.1.00.0802061129120.13593@iabervon.org>

Cover letters are often useful for patch series that don't have a single patch whose message should explain everything. But they're somewhat of a pain to generate by hand, since you have to remember what generated text you want to put in them, how you want to address them, how many patches are in the series, what you're putting in the subject tag, and so forth. This series adds a --cover-letter flag that generates one more message at the start of the series, with all of the sequencing and generation code intact, with a few spaces for you to fill in. This cover letter is an example of the output (without the option to thread the patches).

IIRC, I requested this feature, and Johannes implemented it and sent me a patch, and then I rewrote the patch almost entirely, but I'd never have figured out format-patch without his patch as a guide.

	-Daniel
*This .sig left intentionally blank*
Daniel Barkalow (4):
      Improve message-id generation flow control for format-patch
      Export some email and pretty-printing functions
      Retain extra blank lines between the summary and the body
      Add a --cover-letter option to format-patch
 Documentation/git-format-patch.txt                 |    6 +
 builtin-log.c                                      |  244 ++++++++++++++------
 commit.h                                           |   15 ++
 log-tree.c                                         |  126 ++++++-----
 log-tree.h                                         |    2 +
 pretty.c                                           |   32 ++--
 t/t4013-diff-various.sh                            |    1 +
 ...tch_--stdout_--cover-letter_-n_initial..master^ |  101 ++++++++
 8 files changed, 378 insertions(+), 149 deletions(-)
 create mode 100644 t/t4013/diff.format-patch_--stdout_--cover-letter_-n_initial..master^
Message 1 of 1 in “Generate cover letters with format-patch”
  1. 0/4 Generate cover letters with format-patchDaniel Barkalow, Feb 6, 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.