Skip to content

Commit

Permalink
Merge pull request #2165 from rsteube/git-switch-dash
Browse files Browse the repository at this point in the history
git: switch - dash completion
  • Loading branch information
rsteube authored Jan 9, 2024
2 parents 2757896 + baa657b commit 5dfb58f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions completers/git_completer/cmd/switch.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,8 @@ func init() {
carapace.Gen(switchCmd).PositionalCompletion(
git.ActionRefs(git.RefOption{LocalBranches: true}),
)

carapace.Gen(switchCmd).DashAnyCompletion(
carapace.ActionPositional(switchCmd),
)
}

0 comments on commit 5dfb58f

Please sign in to comment.