MCPcopy Create free account
hub / github.com/cli/cli / runGitCommands

Function runGitCommands

pkg/cmd/issue/develop/develop.go:422–433  ·  view source on GitHub ↗
(client *git.Client, commands [][]string)

Source from the content-addressed store, hash-verified

420}
421
422func runGitCommands(client *git.Client, commands [][]string) error {
423 for _, args := range commands {
424 cmd, err := client.Command(ctx.Background(), args...)
425 if err != nil {
426 return err
427 }
428 if _, err := cmd.Output(); err != nil {
429 return err
430 }
431 }
432 return nil
433}

Callers 1

checkoutBranchFunction · 0.85

Calls 2

CommandMethod · 0.80
OutputMethod · 0.65

Tested by

no test coverage detected