You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [Unreleased]
9
9
10
+
### Added
11
+
12
+
- Added support for indexing and searching repositories across multiple revisions (tag or branch). ([#58](https://github.com/sourcebot-dev/sourcebot/pull/58))
If you're using a self-hosted GitLab or GitHub instance with a custom domain, you can specify the domain in your config file. See [configs/self-hosted.json](configs/self-hosted.json) for examples.
269
269
270
+
## Searching multiple branches
271
+
272
+
By default, Sourcebot will index the default branch. To configure Sourcebot to index multiple branches (or tags), the `revisions` field can be used:
// Index the `main` branch and any branches matching the `releases/*` glob pattern.
282
+
"branches": [
283
+
"main",
284
+
"releases/*"
285
+
],
286
+
// Index the `latest` tag and any tags matching the `v*.*.*` glob pattern.
287
+
"tags": [
288
+
"latest",
289
+
"v*.*.*"
290
+
]
291
+
},
292
+
"repos": [
293
+
"my_org/repo_a",
294
+
"my_org/repo_b"
295
+
]
296
+
}
297
+
]
298
+
}
299
+
```
300
+
301
+
For each repository (in this case, `repo_a` and `repo_b`), Sourcebot will index all branches and tags matching the `branches` and `tags` patterns provided. Any branches or tags that don't match the patterns will be ignored and not indexed.
302
+
303
+
To search on a specific revision, use the `revision` filter in the search bar:
0 commit comments