MCPcopy Create free account
hub / github.com/LegacyCodeHQ/clarity-cli / gitCommit

Function gitCommit

vcs/git/git_test_helpers.go:56–60  ·  view source on GitHub ↗

gitCommit commits files with a message

(t *testing.T, repoDir, message string)

Source from the content-addressed store, hash-verified

54
55// gitCommit commits files with a message
56func gitCommit(t *testing.T, repoDir, message string) {
57 cmd := exec.Command("git", "commit", "-m", message)
58 cmd.Dir = repoDir
59 require.NoError(t, cmd.Run(), "failed to git commit")
60}
61
62// gitCommitAndGetSHA commits files and returns the commit SHA
63func gitCommitAndGetSHA(t *testing.T, repoDir, message string) string {

Calls

no outgoing calls