From aa4830edd01048dd7aa33db2d441ee3209628941 Mon Sep 17 00:00:00 2001 From: Ilya Grigoriev Date: Tue, 19 Nov 2024 21:19:43 -0800 Subject: [PATCH] docs: add example glob to `jj help git fetch` I tried to clarify the text a bit as well. --- cli/src/commands/git/fetch.rs | 3 ++- cli/tests/cli-reference@.md.snap | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cli/src/commands/git/fetch.rs b/cli/src/commands/git/fetch.rs index 183d3823bc..9612f9dfb2 100644 --- a/cli/src/commands/git/fetch.rs +++ b/cli/src/commands/git/fetch.rs @@ -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", diff --git a/cli/tests/cli-reference@.md.snap b/cli/tests/cli-reference@.md.snap index e3da2f4863..664c306c4b 100644 --- a/cli/tests/cli-reference@.md.snap +++ b/cli/tests/cli-reference@.md.snap @@ -1095,7 +1095,7 @@ If a working-copy commit gets abandoned, it will be given a new, empty commit. T * `-b`, `--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 ` — The remote to fetch from (only named remotes are supported, can be repeated)