Show only ≤16 lines of codes in a discussion in a MR (issue #2860).

王权利请求将github/fork/kennytm/master合并到master

Created by: kennytm

The code shown in a discussion will now be trimmed to include only the previous 16 lines or the closest '@@' line, whichever comes first (like GitHub). This allows user able to reach the discussion without scrolling through all irrelevant changes in the MR page.

This PR fixes #2860 (closed).

screenshot

合并请求报告