Skip to content

Commit 580b7b0

Browse files
committed
but: complete git branches for apply
1 parent ef36c6f commit 580b7b0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

completers/common/but_completer/cmd/branch_apply.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package cmd
22

33
import (
44
"github.com/carapace-sh/carapace"
5-
"github.com/carapace-sh/carapace-bin/pkg/actions/tools/but"
5+
"github.com/carapace-sh/carapace-bin/pkg/actions/tools/git"
66
"github.com/spf13/cobra"
77
)
88

@@ -19,6 +19,9 @@ func init() {
1919
branchCmd.AddCommand(branch_applyCmd)
2020

2121
carapace.Gen(branch_applyCmd).PositionalCompletion(
22-
but.ActionLocalBranches(),
22+
carapace.Batch(
23+
git.ActionLocalBranches(),
24+
git.ActionRemoteBranches(""),
25+
).ToA(),
2326
)
2427
}

0 commit comments

Comments
 (0)