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

Function gitAdd

vcs/git/git_test_helpers.go:49–53  ·  view source on GitHub ↗

gitAdd adds a file to git staging area

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

Source from the content-addressed store, hash-verified

47
48// gitAdd adds a file to git staging area
49func gitAdd(t *testing.T, repoDir, file string) {
50 cmd := exec.Command("git", "add", file)
51 cmd.Dir = repoDir
52 require.NoError(t, cmd.Run(), "failed to git add %s", file)
53}
54
55// gitCommit commits files with a message
56func gitCommit(t *testing.T, repoDir, message string) {

Calls

no outgoing calls