docs: add example glob to jj help git fetch

I tried to clarify the text a bit as well.
This commit is contained in:
Ilya Grigoriev 2024-11-19 21:19:43 -08:00
parent e4231f2ce3
commit d3a51cebb7
2 changed files with 3 additions and 2 deletions

View file

@ -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",

View file

@ -1096,7 +1096,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)