Commit 97093a52 authored by Jacob Vosmaer's avatar Jacob Vosmaer
Browse files

Show at most 100 commits in the web UI

When rendering 1 commit takes over 5ms (on my laptop: around 9ms), it
saves seconds in rendering time to show 100 instead of 500 commits.
parent f8c4dc97
......@@ -17,7 +17,7 @@ class MergeRequestDiff < ActiveRecord::Base
include Sortable
# Prevent store of diff if commits amount more then 500
belongs_to :merge_request
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment