Skip to content

Commit a6d79e3

Browse files
committed
add aliases to make revision sub-commands more accessible
1 parent 2f506c7 commit a6d79e3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: src/plumbing/options.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,13 @@ pub mod commit {
180180

181181
pub mod revision {
182182
#[derive(Debug, clap::Subcommand)]
183-
#[clap(visible_alias = "rev")]
183+
#[clap(visible_alias = "rev", visible_alias = "r")]
184184
pub enum Subcommands {
185185
/// Provide the revision specification like `@~1` to explain.
186+
#[clap(visible_alias = "e")]
186187
Explain { spec: std::ffi::OsString },
187188
/// Try to resolve the given revspec and print the object names.
188-
#[clap(visible_alias = "query", visible_alias = "parse")]
189+
#[clap(visible_alias = "query", visible_alias = "parse", visible_alias = "p")]
189190
Resolve {
190191
/// Instead of resolving a rev-spec, explain what would be done for the first spec.
191192
///
@@ -200,6 +201,7 @@ pub mod revision {
200201
specs: Vec<std::ffi::OsString>,
201202
},
202203
/// Return the names and hashes of all previously checked-out branches.
204+
#[clap(visible_alias = "prev")]
203205
PreviousBranches,
204206
}
205207
}

0 commit comments

Comments
 (0)