diff --git a/cli/src/commands/git/fetch.rs b/cli/src/commands/git/fetch.rs index 3b2d2ecd2d..7b667b8287 100644 --- a/cli/src/commands/git/fetch.rs +++ b/cli/src/commands/git/fetch.rs @@ -42,7 +42,7 @@ pub struct GitFetchArgs { /// /// By default, the specified name matches exactly. Use `glob:` prefix to /// expand `*` as a glob. The other wildcard characters aren't supported. - #[arg(long, short, default_value = "glob:*", value_parser = StringPattern::parse)] + #[arg(long, short, alias="bookmark", default_value = "glob:*", value_parser = StringPattern::parse)] branch: Vec, /// The remote to fetch from (only named remotes are supported, can be /// repeated) diff --git a/cli/src/commands/git/push.rs b/cli/src/commands/git/push.rs index 6b7d019035..429d02b22d 100644 --- a/cli/src/commands/git/push.rs +++ b/cli/src/commands/git/push.rs @@ -84,7 +84,7 @@ pub struct GitPushArgs { /// By default, the specified name matches exactly. Use `glob:` prefix to /// select bookmarks by wildcard pattern. For details, see /// https://martinvonz.github.io/jj/latest/revsets#string-patterns. - #[arg(long, short, value_parser = StringPattern::parse)] + #[arg(long, short, alias="branch", value_parser = StringPattern::parse)] bookmark: Vec, /// Push all bookmarks (including deleted bookmarks) #[arg(long)]