Skip to content

Commit 9ce0d5d

Browse files
authored
fix(git): git worktree add - branch is optional (#1181)
Fix #1153 The completion script wrongly made the `branch` argument required, blocking Nushell from loading when both `git-completions.nu` and `git-aliases.nu` are used.
1 parent ec82566 commit 9ce0d5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom-completions/git/git-completions.nu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ export extern "git worktree" [
787787
# create a new working tree
788788
export extern "git worktree add" [
789789
path: path # directory to clone the branch
790-
branch: string@"nu-complete git available upstream" # Branch to clone
790+
branch?: string@"nu-complete git available upstream" # Branch to clone
791791
--help(-h) # display the help message for this command
792792
--force(-f) # checkout <branch> even if already checked out in other worktree
793793
-b # create a new branch

0 commit comments

Comments
 (0)