MCPcopy Create free account
hub / github.com/rilldata/rill / setGitConfig

Method setGitConfig

cli/pkg/cmdutil/githelper.go:137–146  ·  view source on GitHub ↗
(ctx context.Context, c *gitutil.Config)

Source from the content-addressed store, hash-verified

135}
136
137func (g *GitHelper) setGitConfig(ctx context.Context, c *gitutil.Config) error {
138 err := g.gitConfigMu.Acquire(ctx, 1)
139 if err != nil {
140 return err
141 }
142 defer g.gitConfigMu.Release(1)
143
144 g.gitConfig = c
145 return nil
146}
147
148func SetupGitIgnore(ctx context.Context, repo drivers.RepoStore) error {
149 // Ensure .gitignore exists and contains necessary entries

Callers 1

PushToNewManagedRepoMethod · 0.95

Calls 2

AcquireMethod · 0.65
ReleaseMethod · 0.45

Tested by

no test coverage detected