Remove branch-namespace option

This commit is contained in:
2021-12-23 18:33:14 +01:00
parent 02e9de0cbd
commit 92e4856dd9
3 changed files with 3 additions and 21 deletions

View File

@@ -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>,

View File

@@ -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));