MCPcopy
hub / github.com/kptdev/kpt / commit

Function commit

internal/testutil/testutil.go:646–655  ·  view source on GitHub ↗
(repo, message string)

Source from the content-addressed store, hash-verified

644}
645
646func commit(repo, message string) error {
647 cmd := exec.Command("git", "commit", "-m", message)
648 cmd.Dir = repo
649 stdoutStderr, err := cmd.CombinedOutput()
650 if err != nil {
651 fmt.Fprintf(os.Stderr, "%s", stdoutStderr)
652 return err
653 }
654 return nil
655}
656
657func tag(repo, tag string) error {
658 cmd := exec.Command("git", "tag", tag)

Callers 2

CommitMethod · 0.85
CommitMethod · 0.85

Calls 1

CommandMethod · 0.45

Tested by

no test coverage detected