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

[PATCH 0/3] format-patch: teach --infer-cover-subject option

From
Denton Liu <liu.denton@gmail.com>
Date
Aug 19, 2019, 02:37 UTC
Message-ID
<cover.1566182184.git.liu.denton@gmail.com>

Currently, format-patch only puts "*** SUBJECT HERE ***" when a cover letter is generated. However, it is already smart enough to be able to populate the cover letter with the branch description so there's no reason why it cannot populate the subject as well.

Teach format-patch the --infer-cover-subject and corresponding format.inferCoverSubject configuration option which will read the subject from the branch description using the same rules as for a commit message (that is, it will expect a subject line followed by a blank line).

Also includes some other cleanup along the way.
This was based on patches 1-3 of an earlier patchset I sent[1].
[1]: https://public-inbox.org/git/cover.1558492582.git.liu.denton@gmail.com/
Denton Liu (3):
  t4014: clean up style
  Doc: add more detail for git-format-patch
  format-patch: infer cover letter from branch description
 Documentation/config/format.txt    |   5 +
 Documentation/git-format-patch.txt |  35 +-
 builtin/log.c                      |  56 ++-
 t/t4014-format-patch.sh            | 656 ++++++++++++++++-------------
 4 files changed, 425 insertions(+), 327 deletions(-)
-- 
2.23.0.248.g3a9dd8fb08
Next: Denton Liu
Message 1 of 9 in “format-patch: teach --infer-cover-subject option”
  1. 0/3 format-patch: teach --infer-cover-subject optionDenton Liu, Aug 19, 2019
  2. 2/3 Doc: add more detail for git-format-patchDenton Liu, Aug 19, 2019
  3. Eric SunshineAug 19, 2019
  4. Denton LiuAug 19, 2019
  5. Junio C HamanoAug 20, 2019
  6. 3/3 format-patch: infer cover letter from branch descriptionDenton Liu, Aug 19, 2019
  7. Eric SunshineAug 19, 2019
  8. 1/3 t4014: clean up styleDenton Liu, Aug 19, 2019
  9. Eric SunshineAug 19, 2019

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.