Handling big commits & big diff

This commit is contained in:
Dmitriy Zaporozhets 2012-04-06 01:00:15 +03:00
parent 17a88bb6a2
commit 86676476e6
7 changed files with 85 additions and 53 deletions

View file

@ -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