From d3a51cebb797f716cde16c4de2f320e6ae906d5c 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 ee65ad875d..0be1df9b63 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 8c12602997..0cd017aa4a 100644 --- a/cli/tests/cli-reference@.md.snap +++ b/cli/tests/cli-reference@.md.snap @@ -1096,7 +1096,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)