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

Re: [PATCH] send-email: Refuse to send cover-letter template subject

From
Thomas Rast <trast@student.ethz.ch>
Date
Jun 12, 2009, 11:48 UTC
Message-ID
<200906121348.19103.trast@student.ethz.ch>
In-Reply-To
<200906091019.11000.trast@student.ethz.ch>
Thomas Rast wrote:
Show 15 quoted lines
> Junio C Hamano wrote:
> > Thomas Rast <trast@student.ethz.ch> writes:
> > 
> > > Every so often, someone sends out an unedited cover-letter template.
> > > Add a simple check to send-email that refuses to send if the subject
> > > contains "*** SUBJECT HERE ***", with an option --force to override.
> > 
> > Good ;-).  More valuable to detect would be an empty "blurb" section
> > (i.e. not "unedited *** BLURB HERE ***" string, but literally, there is
> > nothing said in the message other than the shortstat).
> 
> Wouldn't that be AI complete?  As in, whatever regex (or similar) you
> might cook up could probably be matched by *someone's* style of patch
> descriptions, and then it suddenly becomes rather hard to tell them
> apart.
For a contrived example, compare
-- 8< --
Thomas Rast (1):
  Documentation: teach stash/pop workflow instead of stash/apply
-- >8 --
and
-- 8< --
Patch (1):
  Some explanation of what patch number 1 does
-- >8 --

Except for the " (1):", the whole contents of the shortstat are given by the patches. So I don't think it's possible to tell them apart without figuring out what the shortlog would have said for the actual patches, and comparing that to the contents. I'd rather not parse the patches for author info and subject.

What do you want me to do about the patch? Should I extend it so that it traps both "*** BLURB HERE ***" and "*** SUBJECT HERE ***"?

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Previous: Thomas RastNext: Junio C Hamano
Message 4 of 8 in “send-email: Refuse to send cover-letter template subject”
  1. send-email: Refuse to send cover-letter template subjectThomas Rast, Jun 8, 2009
  2. Junio C HamanoJun 8, 2009
  3. Thomas RastJun 9, 2009
  4. Thomas RastJun 12, 2009
  5. Junio C HamanoJun 12, 2009
  6. Markus HeidelbergJun 9, 2009
  7. Junio C HamanoJun 9, 2009
  8. Markus HeidelbergJun 9, 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.