[git-notify] Améliorations
This commit is contained in:
parent
0f194550cc
commit
8d0bac69d5
1 changed files with 3 additions and 3 deletions
|
@ -56,7 +56,7 @@ my $gitweb_url = git_config( "notify.baseurl" );
|
||||||
my $repos_name = git_config( "notify.repository" ) || get_repos_name();
|
my $repos_name = git_config( "notify.repository" ) || get_repos_name();
|
||||||
|
|
||||||
# max size of diffs in bytes (can be changed with the -s option)
|
# 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)
|
# address for mail notices (can be set with -m option)
|
||||||
my $commitlist_address = git_config( "notify.mail" );
|
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" );
|
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)
|
# 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
|
# branches to include
|
||||||
my @include_list = split /\s+/, git_config( "notify.include" ) || "";
|
my @include_list = split /\s+/, git_config( "notify.include" ) || "";
|
||||||
|
@ -168,9 +168,9 @@ sub mail_notification($$$@)
|
||||||
print "To: $name\n";
|
print "To: $name\n";
|
||||||
print "Subject: $subject\n";
|
print "Subject: $subject\n";
|
||||||
print "Content-Type: $content_type\n";
|
print "Content-Type: $content_type\n";
|
||||||
print "X-CVSinfo: CRANS\n";
|
|
||||||
print "X-DarcsInfo: CRANS-$repos_name\n";
|
print "X-DarcsInfo: CRANS-$repos_name\n";
|
||||||
print "X-GitInfo: CRANS-$repos_name\n";
|
print "X-GitInfo: CRANS-$repos_name\n";
|
||||||
|
print "X-CVSInfo: GIT\n";
|
||||||
|
|
||||||
print "\n", join("\n", @text), "\n";
|
print "\n", join("\n", @text), "\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue