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

Re: What's cooking in git.git (Feb 2026, #04)

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 12, 2026, 16:38 UTC
Message-ID
<xmqq3435rk70.fsf@gitster.g>
In-Reply-To
<53696dd3-1920-4777-a62e-bf7818bd228c@gmail.com>
Phillip Wood <phillip.wood123@gmail.com> writes:
Show 18 quoted lines
> On 10/02/2026 22:21, Junio C Hamano wrote:
>> 
>> * pw/commit-msg-sample-hook (2026-02-07) 3 commits
>>   - templates: detect messages that contain a separator line
>>   - templates: detect commit messages containing diffs
>>   - templates: add .gitattributes entry for sample hooks
>> 
>>   Update sample commit-msg hook to complain when a log message has
>>   material mailinfo considers the end of log message in the middle.
>> 
>>   Will merge to 'next'?
>>   source: <cover.1770476279.git.phillip.wood@dunelm.org.uk>
>
> I'm planning a re-roll to handle subject lines that start with "diff -" 
> after using this hook while preparing 
> <2a8cc2d6c37f25a58823b501500165d597321749.1770911599.git.phillip.wood@dunelm.org.uk>. 
> Such subject lines are safe because "git format-patch" prefixes them 
> with [PATCH]. I think I'll probably drop the last patch as well.

OK. Even though the "[PATCH] " prefix is optional in format-patch output, it will be on the line that begins with "Subject:", so it should be safe, so you can safely exclude the lines in the first paragraph of a commit message from the check.

Thanks.
Previous: Phillip WoodNext: Phillip Wood
Message 8 of 9 in “What's cooking in git.git (Feb 2026, #04)”
  1. Junio C HamanoFeb 10, 2026
  2. Patrick SteinhardtFeb 11, 2026
  3. Junio C HamanoFeb 11, 2026
  4. Patrick SteinhardtFeb 12, 2026
  5. Junio C HamanoFeb 11, 2026
  6. Samuel AbrahamFeb 12, 2026
  7. Phillip WoodFeb 12, 2026
  8. Junio C HamanoFeb 12, 2026
  9. Phillip WoodFeb 13, 2026

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.