Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/sourcegraph-cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func run() int {
}
fs := flag.NewFlagSet("sourcegraph-cli", flag.ContinueOnError)
repo := fs.String("repo", "", "canonical repository")
revision := fs.String("revision", "", "full SHA or configured branch")
revision := fs.String("revision", "", "monitored branch or full SHA; resolve also accepts any branch or tag, refs/heads/<name> or refs/tags/<name>")
pattern := fs.String("e", "", "search pattern, like rg -e; otherwise the first argument")
fixed := fs.Bool("F", false, "search: match the pattern as literal text, like rg -F")
ignoreCase := fs.Bool("i", false, "search: ignore case, like rg -i")
Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ sourcegraph-cli read -repo context4ai/context -path README.md -start-line 1 -end

| Flag | Purpose |
| --- | --- |
| `-repo`, `-revision` | Repository and full SHA or configured branch |
| `-repo`, `-revision` | Repository, and a monitored branch or full SHA; `resolve` also accepts any branch or tag name and `refs/heads/<name>` or `refs/tags/<name>` |
| `-e`, `-F`, `-i`, `-l`, `-g` | Search pattern, literal text, ignore case, paths only, include or `!exclude` glob (repeatable) |
| `-path`, `-start-line`, `-end-line` | Read target and range (default lines 1–100) |
| `-first`, `-after` | Page size and cursor for `list` and `diff` |
Expand Down
Loading