Skip to content

Commit e65d76c

Browse files
authored
git: add completion for branch -D (#1209)
Also allow multiple branches to be autocompleted
1 parent 08ae664 commit e65d76c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

custom-completions/git/git-completions.nu

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ export extern "git merge" [
531531

532532
# List or change branches
533533
export extern "git branch" [
534-
branch?: string@"nu-complete git local branches" # name of branch to operate on
534+
...branch: string@"nu-complete git local branches" # name of branch (or branches) to operate on
535535
--abbrev # use short commit hash prefixes
536536
--edit-description # open editor to edit branch description
537537
--merged # list reachable branches
@@ -548,6 +548,7 @@ export extern "git branch" [
548548
--color # use color in output
549549
--quiet # suppress messages except errors
550550
--delete(-d) # delete branch
551+
-D # force delete branch
551552
--list # list branches
552553
--contains: string@"nu-complete git commits all" # show only branches that contain the specified commit
553554
--no-contains # show only branches that don't contain specified commit

0 commit comments

Comments
 (0)