Skip to content

Commit bee8357

Browse files
committed
Add file and directory filtering on compare page
1 parent cf3a634 commit bee8357

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/code-search/features.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,15 @@ Here is an example of search results with personalized search ranking enabled:
120120

121121
As you can see, the results are now ranked based on their relevance to the query, and the results from repositories you've recently contributed to are boosted.
122122

123+
## Compare changes across revisions
124+
125+
When you run a search, you can compare the results from two different revisions of the codebase. From your search query results page, click the three-dot **...** icon next to the **Contributors** tab. Then select the **Compare** option.
126+
127+
From here, you can execute file and directory filtering and compare large diffs, making it easier to navigate and manage.
128+
129+
This file picker is useful when comparing branches with thousands of changed files and allows you to select specific files or directories to focus on. You can filter files directly by constructing a URL with multiple file paths or use a compressed file list for even larger selections.
130+
131+
![file-and-directory-filtering](https://storage.googleapis.com/sourcegraph-assets/Docs/filter-by-file-dir-on-compare.png)
123132

124133
## Other search tips
125134

0 commit comments

Comments
 (0)