From a263404ea59d1aab5310733977e81a52b203c09d Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Wed, 15 Oct 2025 10:33:37 +0800 Subject: [PATCH] fix(git): git worktree add - branch is optional --- custom-completions/git/git-completions.nu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom-completions/git/git-completions.nu b/custom-completions/git/git-completions.nu index afb69ea1..adf6af84 100644 --- a/custom-completions/git/git-completions.nu +++ b/custom-completions/git/git-completions.nu @@ -787,7 +787,7 @@ export extern "git worktree" [ # create a new working tree export extern "git worktree add" [ path: path # directory to clone the branch - branch: string@"nu-complete git available upstream" # Branch to clone + branch?: string@"nu-complete git available upstream" # Branch to clone --help(-h) # display the help message for this command --force(-f) # checkout even if already checked out in other worktree -b # create a new branch