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

Re: [PATCH] Teach applymbox to keep the Subject: line.

From
Junio C Hamano <junkio@cox.net>
Date
Aug 19, 2005, 01:04 UTC
Message-ID
<7vacjeenyi.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.58.0508181257320.3412@g5.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
> Well, Junio has been talking about adding commit hooks. I don't think
> that's been done.
No, notyet.  But tonight.
Show 8 quoted lines
> The only question is what the hook/trigger should look like. just put
> something like
>
> 	[ -x .git/hooks/applypatch-hook ] &&
> 	     .git/hooks/applypatch-hook "$tree" "$PATCHFILE" || exit
>
> at the line before that "git-apply" perhaps? Then, you could install your 
> own applypatch hook which looks at the message or the patch?

Sounds sensible. The hook would probably want a handy access to the commit object as well to catch:

     - the author name may be spelled wrong or has funky
       B-encodings still left.
     - some people might want to even run spellchecker on the
       commit message.
     - lack of S-O-B line.
Previous: Linus TorvaldsNext: Junio C Hamano
Message 7 of 15 in “Re: [RFC] Patches exchange is bad?”
  1. Marco CostalbaAug 16, 2005
  2. git-format-patch fixJunio C Hamano, Aug 16, 2005
  3. Teach applymbox to keep the Subject: line.Junio C Hamano, Aug 17, 2005
  4. Linus TorvaldsAug 17, 2005
  5. Sam RavnborgAug 18, 2005
  6. Linus TorvaldsAug 18, 2005
  7. Junio C HamanoAug 19, 2005
  8. Add hooks to tools/git-applypatch.Junio C Hamano, Aug 19, 2005
  9. Junio C HamanoAug 19, 2005
  10. Jeff GarzikAug 17, 2005
  11. Junio C HamanoAug 17, 2005
  12. Linus TorvaldsAug 17, 2005
  13. Junio C HamanoAug 17, 2005
  14. Johannes SchindelinAug 17, 2005
  15. David KågedalAug 18, 2005

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.