Add default tracking configuration
This commit is contained in:
@@ -102,6 +102,9 @@ pub struct WorktreeAddArgs {
|
||||
pub branch_namespace: Option<String>,
|
||||
#[clap(short = 't', long = "track", about = "Remote branch to track")]
|
||||
pub track: Option<String>,
|
||||
|
||||
#[clap(long = "--no-track", about = "Disable tracking")]
|
||||
pub no_track: bool,
|
||||
}
|
||||
#[derive(Parser)]
|
||||
pub struct WorktreeDeleteArgs {
|
||||
|
||||
@@ -162,6 +162,7 @@ fn main() {
|
||||
&action_args.name,
|
||||
action_args.branch_namespace.as_deref(),
|
||||
track,
|
||||
action_args.no_track,
|
||||
) {
|
||||
Ok(_) => print_success(&format!("Worktree {} created", &action_args.name)),
|
||||
Err(error) => {
|
||||
|
||||
Reference in New Issue
Block a user