Skip to content

Commit 2f6fc04

Browse files
Support rev:* wildcard
1 parent c477d76 commit 2f6fc04

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/web/src/features/search/parser.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,9 @@ const transformTreeToIR = async ({
244244
case RevisionExpr:
245245
return {
246246
branch: {
247-
pattern: value,
247+
// Special case - "*" means search all branches. Passing in a
248+
// blank string will match all branches.
249+
pattern: value === '*' ? "" : value,
248250
exact: false
249251
},
250252
query: "branch"

0 commit comments

Comments
 (0)