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

[RFC] Making format-patch output better when blank line is missing?

From
Adeodato Simó <dato@net.com.org.es>
Date
Jan 17, 2009, 12:35 UTC
Message-ID
<20090117123545.GA22842@chistera.yi.org>
Hello,

I'm using git-format-patch to send commit diff emails, and it was recently brought to my atention that if a commit message consists entirely in a paragraph with no blank lines (particluarly, no blank line after the first line, which is not a summary but just the first line of the paragraph), git-format-patch will place all the commit message in the Subject, which is inconvenient to read.

Do you think it would be good to have format-patch do something like this in this case?:

    Subject: [PATCH] This commit introduces a new function bla() that [...]
    [...] makes it possible to apply the frobniz operation to objects
    that don't bla bla bla bla.

(I realize that, with this, the applying logic would have to learn about it. Hm.)

-- 
Adeodato Simó                                     dato at net.com.org.es
Debian Developer                                  adeodato at debian.org
 
- I love you, Shirley, I'm not ashamed to say.
- If you love me, then you'll want me to be happy. Even if I'm not with you.
- I don't love you that much.
                -- Denny Crane and Shirley Schmidt
Next: Jeff King
Message 1 of 2 in “[RFC] Making format-patch output better when blank line is missing?”
  1. Adeodato SimóJan 17, 2009
  2. Jeff KingJan 17, 2009

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.