BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
5eeea4b7
Commit
5eeea4b7
authored
Mar 04, 2016
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Limit the number of commits shown in MRs
This prevents timeouts when creating a MR with 1000s of commits.
parent
97093a52
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
_commits.html.haml
app/views/projects/commits/_commits.html.haml
+11
-1
No files found.
app/views/projects/commits/_commits.html.haml
View file @
5eeea4b7
-
unless
defined?
(
project
)
-
project
=
@project
-
if
@commits
.
size
>
MergeRequestDiff
::
COMMITS_SAFE_SIZE
-
commits
=
@commits
.
first
(
MergeRequestDiff
::
COMMITS_SAFE_SIZE
)
-
overflow
=
true
-
else
-
commits
=
@commits
-
overflow
=
false
-
@
commits
.
group_by
{
|
c
|
c
.
committed_date
.
to_date
}.
sort
.
reverse
.
each
do
|
day
,
commits
|
-
commits
.
group_by
{
|
c
|
c
.
committed_date
.
to_date
}.
sort
.
reverse
.
each
do
|
day
,
commits
|
.row.commits-row
.col-md-2.hidden-xs.hidden-sm
%h5
.commits-row-date
...
...
@@ -13,3 +19,7 @@
%ul
.bordered-list
=
render
commits
,
project:
project
%hr
.lists-separator
-
if
overflow
.alert.alert-warning
Not shown:
#{
@commits
.
size
-
MergeRequestDiff
::
COMMITS_SAFE_SIZE
}
more commits
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