Remove branch-namespace option
This commit is contained in:
@@ -94,12 +94,6 @@ pub struct WorktreeAddArgs {
|
||||
#[clap(about = "Name of the worktree")]
|
||||
pub name: String,
|
||||
|
||||
#[clap(
|
||||
short = 'n',
|
||||
long = "branch-namespace",
|
||||
about = "Namespace of the branch"
|
||||
)]
|
||||
pub branch_namespace: Option<String>,
|
||||
#[clap(short = 't', long = "track", about = "Remote branch to track")]
|
||||
pub track: Option<String>,
|
||||
|
||||
|
||||
@@ -157,13 +157,7 @@ fn main() {
|
||||
None => None,
|
||||
};
|
||||
|
||||
match grm::add_worktree(
|
||||
&cwd,
|
||||
&action_args.name,
|
||||
action_args.branch_namespace.as_deref(),
|
||||
track,
|
||||
action_args.no_track,
|
||||
) {
|
||||
match grm::add_worktree(&cwd, &action_args.name, track, action_args.no_track) {
|
||||
Ok(_) => print_success(&format!("Worktree {} created", &action_args.name)),
|
||||
Err(error) => {
|
||||
print_error(&format!("Error creating worktree: {}", error));
|
||||
|
||||
Reference in New Issue
Block a user