MCPcopy
hub / github.com/github/git-sizer / ConfigAdd

Method ConfigAdd

internal/testutils/repoutils.go:284–289  ·  view source on GitHub ↗

ConfigAdd adds a key-value pair to the gitconfig in `repo`.

(t *testing.T, key, value string)

Source from the content-addressed store, hash-verified

282
283// ConfigAdd adds a key-value pair to the gitconfig in `repo`.
284func (repo *TestRepo) ConfigAdd(t *testing.T, key, value string) {
285 t.Helper()
286
287 err := repo.GitCommand(t, "config", "--add", key, value).Run()
288 require.NoError(t, err)
289}

Callers 2

TestRefSelectionsFunction · 0.95
TestRefgroupsFunction · 0.95

Calls 2

GitCommandMethod · 0.95
RunMethod · 0.80

Tested by 2

TestRefSelectionsFunction · 0.76
TestRefgroupsFunction · 0.76