Handling big commits & big diff
This commit is contained in:
parent
17a88bb6a2
commit
86676476e6
7 changed files with 85 additions and 53 deletions
|
@ -34,6 +34,10 @@ class CommitsController < ApplicationController
|
|||
@line_notes = project.commit_line_notes(@commit)
|
||||
|
||||
@notes_count = @line_notes.count + project.commit_notes(@commit).count
|
||||
|
||||
if @commit.diffs.size > 200 && !params[:force_show_diff]
|
||||
@suppress_diff = true
|
||||
end
|
||||
end
|
||||
|
||||
def compare
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue