Skip to content

Commit

Permalink
git: set commit limit to 100
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Aug 25, 2023
1 parent b6656b7 commit eef22df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/actions/tools/git/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func ActionHeadCommits(limit int) carapace.Action {
// 01 (commit message)
func ActionRefCommits(ref string) carapace.Action {
return carapace.ActionCallback(func(c carapace.Context) carapace.Action {
limit := 99 // TODO pass as argument
limit := 100
args := []string{"log", "--no-notes", "--first-parent", "--pretty=tformat:%h %<(64,trunc)%s", "--max-count", strconv.Itoa(limit), ref}
return carapace.ActionExecCommand("git", args...)(func(output []byte) carapace.Action {
lines := strings.Split(string(output), "\n")
Expand Down

0 comments on commit eef22df

Please sign in to comment.