Thread (12 messages) flat view 12 messages, 6 authors, 2016-06-15

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

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:04

Linus Torvalds [off-list ref] writes:
Well, Junio has been talking about adding commit hooks. I don't think
that's been done.
No, notyet.  But tonight.
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help