Skip to content

Commit

Permalink
docs: add example glob to jj help git fetch
Browse files Browse the repository at this point in the history
I tried to clarify the text a bit as well.
  • Loading branch information
ilyagr committed Nov 20, 2024
1 parent c0a9e20 commit aa4830e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cli/src/commands/git/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ pub struct GitFetchArgs {
/// Fetch only some of the branches
///
/// By default, the specified name matches exactly. Use `glob:` prefix to
/// expand `*` as a glob. The other wildcard characters aren't supported.
/// expand `*` as a glob, e.g. `--branch glob:push-*`. Other wildcard
/// characters such as `?` are *not* supported.
#[arg(
long, short,
alias = "bookmark",
Expand Down
2 changes: 1 addition & 1 deletion cli/tests/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ If a working-copy commit gets abandoned, it will be given a new, empty commit. T
* `-b`, `--branch <BRANCH>` — Fetch only some of the branches
By default, the specified name matches exactly. Use `glob:` prefix to expand `*` as a glob. The other wildcard characters aren't supported.
By default, the specified name matches exactly. Use `glob:` prefix to expand `*` as a glob, e.g. `--branch glob:push-*`. Other wildcard characters such as `?` are *not* supported.
Default value: `glob:*`
* `--remote <REMOTE>` — The remote to fetch from (only named remotes are supported, can be repeated)
Expand Down

0 comments on commit aa4830e

Please sign in to comment.