Skip to content

Display top 5 hunks when using Zoekt ranking

Warren Gifford requested to merge olafurpg/hunks into main

Created by: olafurpg

It was optimistic to only show one hunk per document because the top hunk was only a package statement or import statement.

See https://sourcegraph.slack.com/archives/C07KZF47K/p1639856665318800?thread_ts=1639578578.219400&cid=C07KZF47K for a related discussion.

Example results for the query gitlab in the Sourcegraph repo.

Before

image

After image

Merge request reports

Loading