Your diff is too large to search
症状
The following message appears when search through a commit diff:
Your diff is too large to search. Searching the first 10000 lines
原因
Stash is coded to search through the first 10000 lines of a diff by default. Showing more than 10000 diff lines will impact the performance of the browser, due to the way Stash renders the diff tree. This is particularly noticeable in older browsers and Internet Explorer. There is also a smaller impact on the server, due to processing the output of the Git command required to generate the diff, but is less noticeable with moderately larger values.
ソリューション
Please note that increasing the limit is not recommended and will have a performance impact.
- Stop Stash.
Add the following property into stash-config.properties to increase the limit to 20000 lines (create one if it doesn't exist):
page.max.diff.lines=20000
See Stash config properties for more information.
- Restart Stash.