[git-notify] Améliorations

This commit is contained in:
Pierre-Elliott Bécue 2013-03-03 04:37:16 +01:00
parent 0f194550cc
commit 8d0bac69d5

View file

@ -56,7 +56,7 @@ my $gitweb_url = git_config( "notify.baseurl" );
my $repos_name = git_config( "notify.repository" ) || get_repos_name();
# max size of diffs in bytes (can be changed with the -s option)
my $max_diff_size = git_config( "notify.maxdiff" ) || 10000;
my $max_diff_size = git_config( "notify.maxdiff" ) || 100000;
# address for mail notices (can be set with -m option)
my $commitlist_address = git_config( "notify.mail" );
@ -65,7 +65,7 @@ my $commitlist_address = git_config( "notify.mail" );
my $cia_project_name = git_config( "notify.cia" );
# max number of individual notices before falling back to a single global notice (can be set with -n option)
my $max_individual_notices = git_config( "notify.maxnotices" ) || 100;
my $max_individual_notices = git_config( "notify.maxnotices" ) || 20;
# branches to include
my @include_list = split /\s+/, git_config( "notify.include" ) || "";
@ -168,9 +168,9 @@ sub mail_notification($$$@)
print "To: $name\n";
print "Subject: $subject\n";
print "Content-Type: $content_type\n";
print "X-CVSinfo: CRANS\n";
print "X-DarcsInfo: CRANS-$repos_name\n";
print "X-GitInfo: CRANS-$repos_name\n";
print "X-CVSInfo: GIT\n";
print "\n", join("\n", @text), "\n";
}