Commit 3aa30276 authored by Robert Ricci's avatar Robert Ricci

Turn on summaries by default, add an option to disable

parent 31e16802
...@@ -190,7 +190,13 @@ my @repo_keywords = get_config("keyword",undef); ...@@ -190,7 +190,13 @@ my @repo_keywords = get_config("keyword",undef);
# If defined, produce a summary at the top of the mail if there are at least # If defined, produce a summary at the top of the mail if there are at least
# this many commits # this many commits
# #
my $summary_threshold = get_config("summarythreshold",undef); my $summary_threshold = get_config("summarythreshold",2);
#
# Disable summry messages; they are now on by default
# this many commits
#
my $disable_summary = get_config("nosummary",undef);
###################################################################### ######################################################################
# Constants # Constants
...@@ -725,8 +731,8 @@ sub commit_mail($\@$@) { ...@@ -725,8 +731,8 @@ sub commit_mail($\@$@) {
# Make a pretty summary of commits if there are enough of them # Make a pretty summary of commits if there are enough of them
# #
my $summary; my $summary;
if (defined($summary_threshold) && scalar(@$commits) >= $summary_threshold if (!$disable_summary && defined($summary_threshold)
&& !$separate_mail) { && scalar(@$commits) >= $summary_threshold && !$separate_mail) {
my @summaries; my @summaries;
foreach my $rev (@$commits) { foreach my $rev (@$commits) {
push @summaries, get_summary($rev); push @summaries, get_summary($rev);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment