Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
3aa30276
Commit
3aa30276
authored
Apr 16, 2012
by
Robert Ricci
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turn on summaries by default, add an option to disable
parent
31e16802
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
tools/git/gitmail
tools/git/gitmail
+9
-3
No files found.
tools/git/gitmail
View file @
3aa30276
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment