post-receive-email: optional message line count limit
commitb03e7b7d76e79de14e76df5d4e2ee727f4522a95
authorKevin P. Fleming <kpfleming@digium.com>
Fri, 16 Jul 2010 19:16:23 +0000 (16 14:16 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 16 Jul 2010 22:34:12 +0000 (16 15:34 -0700)
tree10abc5caa4be2ac5ecb44c6d3c7b0ed2d20f2c5b
parent53b304224a561b5fd4ae35cedc0a978d91d4b1da
post-receive-email: optional message line count limit

We have become used to the features of svnmailer when used with Subversion,
and one of those useful features is that it can limit the maximum length
(in lines) of a commit email message. This is terribly useful since once the
goes beyond a reasonable number of lines, nobody is going to read the remainder,
and if they really want the entire contents of the commits, they can use
git itself to get them using the revision IDs present in the message already.

Change the post-receive-email script to respond to an 'emailmaxlines' config key
which, if specified, will limit the number of lines generated (including
headers); any lines beyond the limit are suppressed, and a final line is added
indicating the number that were suppressed.

Signed-off-by: Kevin P. Fleming <kpfleming@digium.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/hooks/post-receive-email