Sourcegraph 3.18: Multi-revision search, custom search pages, campaigns for GitLab, better C++, and more

Laureen Hudson

Our team has been hard at work continuing to improve Sourcegraph, so you can spend more time coding and less time trying to make sense of things. Sourcegraph 3.18 brings a solid lineup of new features and enhancements, including searching across multiple revisions at a time, GitLab support in campaigns, and better C++ support:

  • Search across multiple revisions

    You can now search across multiple revisions of the same repository by listing multiple branch names (or other revision specifiers). For example, to search across multiple branches, you could use something like repo:myrepo@branch1:branch2:branch2 in your query. This can come in handy in situations like searching all release branches for a particular bug so you can fix it for all releases of your application.

  • Indexed non-default branches

    Search is great, but indexing makes it fast. Just as you can now search over multiple revisions simultaneously, you can also have Sourcegraph index multiple non-default revisions. Many users have long-lived release branches they'd like to search as frequently as their default branch, and this means that search will be lightning fast for every important revision in your codebase.

  • Better C++ precise code intelligence

    We wrote a new LSIF indexer for C and C++ based on clangd. This means that developers using C and C++ now have access to precise code intelligence. Developers using the original C++ LSIF indexer based on DXR will see noticeable improvements with this new implementation: it's faster now and supports hover tooltips.

  • Getting notified about the health of Sourcegraph is easier

    Alerts are now delivered with detailed information, including links to potential solutions. Additionally, we now monitor container health and over/under-provisioning in all deployment modes, so you will be alerted if Sourcegraph needs more resources or could do with less.

  • Custom search pages on Sourcegraph Cloud

    You can now search all of the code for several popular open source projects, such as Kubernetes and React, on project-specific search pages. We know many core team members of these projects use Sourcegraph, and this will help them spread the joy of code search to more contributors.

  • Small but useful improvements

    By popular demand, we've added support for campaigns in GitLab. We’ve also improved in-product documentation for adding code hosts and repositories to Sourcegraph.

Check out the changelog for all the details of what changed and why.

Thank you

Thank you to the many people who contributed to Sourcegraph since the last release!

Share your feedback

Whether you use Sourcegraph 20 times per day or are new to it, we'd love to hear what you think!

We look forward to hearing from you!

From the entire Sourcegraph team, happy coding!

Get Cody, the AI coding assistant

Cody makes it easy to write, fix, and maintain code.