Skip to content

Commit

Permalink
Merge pull request #2160 from rsteube/git-bisect-start-dash
Browse files Browse the repository at this point in the history
git: bisect start - dash completion
  • Loading branch information
rsteube authored Jan 9, 2024
2 parents 66d04fc + 8bc016a commit 7de78be
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions completers/git_completer/cmd/bisect_start.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,13 @@ func init() {
return git.ActionRefs(git.RefOption{}.Default())
}),
)

carapace.Gen(bisect_startCmd).DashAnyCompletion(
carapace.ActionCallback(func(c carapace.Context) carapace.Action {
if bisect_startCmd.Flags().ArgsLenAtDash() == 0 {
return carapace.ActionValues()
}
return git.ActionRefFiles(bisect_startCmd.Flags().Args()[0]).FilterArgs()
}),
)
}

0 comments on commit 7de78be

Please sign in to comment.