Skip to content

Commit

Permalink
Buffer commit log processing (#845)
Browse files Browse the repository at this point in the history
Some very large commits take a lot of time to process, which we can make
progress on while we are scanning the contents of other commits.
  • Loading branch information
mcastorina committed Oct 12, 2022
1 parent cea2a23 commit 4aab7b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/gitparse/gitparse.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func Unstaged(ctx context.Context, source string) (chan Commit, error) {

// executeCommand runs an exec.Cmd, reads stdout and stderr, and waits for the Cmd to complete.
func executeCommand(ctx context.Context, cmd *exec.Cmd) (chan Commit, error) {
commitChan := make(chan Commit)
commitChan := make(chan Commit, 64)

stdOut, err := cmd.StdoutPipe()
if err != nil {
Expand Down

0 comments on commit 4aab7b7

Please sign in to comment.